scsi: g_NCR5380: Fix automatic IRQ on HP C2502 cards
authorFinn Thain <fthain@telegraphics.com.au>
Mon, 5 Dec 2016 06:07:20 +0000 (01:07 -0500)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 8 Dec 2016 21:57:58 +0000 (16:57 -0500)
commit145c3ae4c1933d0dceb11d19a36de3458d1872cb
treec47c5d1f19042afb9f56fce1ac61809452c8b553
parent906e4a3c7e03701008d343daec8952d6cf49f82b
scsi: g_NCR5380: Fix automatic IRQ on HP C2502 cards

When IRQ_AUTO is used, the interrupt for HP C2502 cards gets disabled.
Fix this by programming the card for a suitable free irq. The code for
the free irq search comes from ALSA.

Also allow IRQ 9 to work (it aliases to IRQ 2 on the card), as per
Ondrej Zary's patch.

Suggested-by: Ondrej Zary <linux@rainbow-software.org>
Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
Tested-by: Ondrej Zary <linux@rainbow-software.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/g_NCR5380.c