[MIPS] TXx9: PCI error handling
From: Atsushi Nemoto <anemo@mba.ocn.ne.jp> Date: Thu, 24 Jul 2008 00:25:16 +0900 Subject: [PATCH] txx9: PCI error handling Add more control and detailed report on PCI error interrupt. Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
committed by
Ralf Baechle
parent
0751752922
commit
455cc256eb
@ -15,6 +15,7 @@
|
||||
#include <linux/init.h>
|
||||
#include <linux/pci.h>
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/interrupt.h>
|
||||
#include <asm/txx9/generic.h>
|
||||
#include <asm/txx9/tx4927.h>
|
||||
|
||||
@ -81,3 +82,12 @@ int __init tx4927_pciclk66_setup(void)
|
||||
pciclk = -1;
|
||||
return pciclk;
|
||||
}
|
||||
|
||||
void __init tx4927_setup_pcierr_irq(void)
|
||||
{
|
||||
if (request_irq(TXX9_IRQ_BASE + TX4927_IR_PCIERR,
|
||||
tx4927_pcierr_interrupt,
|
||||
IRQF_DISABLED, "PCI error",
|
||||
(void *)TX4927_PCIC_REG))
|
||||
printk(KERN_WARNING "Failed to request irq for PCIERR\n");
|
||||
}
|
||||
|
Reference in New Issue
Block a user