MIPS: pass non-NULL dev_id on shared request_irq()
Recently all usages of setup_irq() was replaced by request_irq().
request_irq() does a few sanity checks that were not done in
setup_irq(), if they fail irq registration will fail. One of the check
is to ensure that non-NULL dev_id is passed in the case of shared irq.
This caused malta on qemu to hang.
Fix it by passing handler as dev_id to all request_irq()'s that are
shared. For sni, instead of passing non-NULL dev_id, remove shared irq
flags.
Fixes: ac8fd122e0
("MIPS: Replace setup_irq() by request_irq()")
Reported-by: Nathan Chancellor <natechancellor@gmail.com>
Suggested-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: afzal mohammed <afzal.mohd.ma@gmail.com>
Tested-by: Guenter Roeck <linux@roeck-us.net>
Tested-by: Nathan Chancellor <natechancellor@gmail.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
This commit is contained in:
committed by
Thomas Bogendoerfer
parent
ac8fd122e0
commit
49e6e07e3c
@ -244,8 +244,8 @@ void __init sni_pcit_irq_init(void)
|
||||
*(volatile u32 *)SNI_PCIT_INT_REG = 0;
|
||||
sni_hwint = sni_pcit_hwint;
|
||||
change_c0_status(ST0_IM, IE_IRQ1);
|
||||
if (request_irq(SNI_PCIT_INT_START + 6, sni_isa_irq_handler,
|
||||
IRQF_SHARED, "ISA", NULL))
|
||||
if (request_irq(SNI_PCIT_INT_START + 6, sni_isa_irq_handler, 0, "ISA",
|
||||
NULL))
|
||||
pr_err("Failed to register ISA interrupt\n");
|
||||
}
|
||||
|
||||
@ -259,8 +259,8 @@ void __init sni_pcit_cplus_irq_init(void)
|
||||
*(volatile u32 *)SNI_PCIT_INT_REG = 0x40000000;
|
||||
sni_hwint = sni_pcit_hwint_cplus;
|
||||
change_c0_status(ST0_IM, IE_IRQ0);
|
||||
if (request_irq(MIPS_CPU_IRQ_BASE + 3, sni_isa_irq_handler,
|
||||
IRQF_SHARED, "ISA", NULL))
|
||||
if (request_irq(MIPS_CPU_IRQ_BASE + 3, sni_isa_irq_handler, 0, "ISA",
|
||||
NULL))
|
||||
pr_err("Failed to register ISA interrupt\n");
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user