scsi: ipr: Fix runaway IRQs when falling back from MSI to LSI
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 30 Nov 2016 21:28:55 +0000 (15:28 -0600)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 1 Dec 2016 00:58:04 +0000 (19:58 -0500)
commit9dadfb973f0d9396ef18f7ee0867fe9a165c03f4
tree769a3c0f66a3ce447f1bb94163c1cddf4c2d8ac0
parentaf25756de972d0f05246f9e6869f395ee0302c02
scsi: ipr: Fix runaway IRQs when falling back from MSI to LSI

LSIs must be ack'ed with an MMIO otherwise they remain asserted
forever. This is controlled by the "clear_isr" flag.

While we set that flag properly when deciding initially whether to use
LSIs or MSIs, we fail to set it if we first chose MSIs, the test fails,
then fallback to LSIs.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Brian King <brking@linux.vnet.ibm.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ipr.c