MIPS: pass non-NULL dev_id on shared request_irq()
authorafzal mohammed <afzal.mohd.ma@gmail.com>
Sat, 14 Mar 2020 08:13:12 +0000 (13:43 +0530)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Mon, 16 Mar 2020 15:04:49 +0000 (16:04 +0100)
commit49e6e07e3c806c311e07da14a6d6e406ac9e719c
tree459d9fcb836127080e623345e253d83e7ba72de9
parentac8fd122e070ce0e60c608d4f085f7af77290844
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: ac8fd122e070 ("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>
arch/mips/dec/setup.c
arch/mips/kernel/cevt-r4k.c
arch/mips/loongson2ef/lemote-2f/irq.c
arch/mips/pmcs-msp71xx/msp_time.c
arch/mips/sni/a20r.c
arch/mips/sni/pcit.c
arch/mips/sni/rm200.c