Skip to contentSkip to conversation

ahci: disable correct irq for dymmy ports

PATCH New Christoph Hellwig 1 participant 1 message Aug 11, 2016 libata

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 ahci: disable correct irq for dymmy ports

irq already contains the interrupt number for the port, don't add the port index to it.

---
 drivers/ata/libahci.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/ata/libahci.c +1 -1
index 7461a58..dcf2c72 100644
@@ -2524,7 +2524,7 @@ static int ahci_host_activate_multi_irqs(struct ata_host *host,
 
 		/* Do not receive interrupts sent by dummy ports */
 		if (!pp) {
-			disable_irq(irq + i);
+			disable_irq(irq);
 			continue;
 		}
 
Signature · 1 line
2.1.4