From: Benjamin Herrenschmidt Date: Wed, 30 Nov 2016 21:28:55 +0000 (-0600) Subject: scsi: ipr: Fix runaway IRQs when falling back from MSI to LSI X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9dadfb973f0d9396ef18f7ee0867fe9a165c03f4;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Brian King Signed-off-by: Martin K. Petersen --- diff --git a/drivers/scsi/ipr.c b/drivers/scsi/ipr.c index 534dc3c877da..835c59c777f2 100644 --- a/drivers/scsi/ipr.c +++ b/drivers/scsi/ipr.c @@ -10157,6 +10157,7 @@ static int ipr_probe_ioa(struct pci_dev *pdev, pci_free_irq_vectors(pdev); ioa_cfg->nvectors = 1; + ioa_cfg->clear_isr = 1; break; default: goto out_msi_disable;