public inbox for linux-ide@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] ahci: disable correct irq for dymmy ports
@ 2016-08-11 14:24 Christoph Hellwig
  0 siblings, 0 replies; 5+ messages in thread
From: Christoph Hellwig @ 2016-08-11 14:24 UTC (permalink / raw)
  To: tj; +Cc: linux-ide

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

Signed-off-by: Christoph Hellwig <hch@lst.de>
---
 drivers/ata/libahci.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/ata/libahci.c b/drivers/ata/libahci.c
index 7461a58..dcf2c72 100644
--- a/drivers/ata/libahci.c
+++ b/drivers/ata/libahci.c
@@ -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;
 		}
 
-- 
2.1.4


^ permalink raw reply related	[flat|nested] 5+ messages in thread
* two ahci fixes from code inspection
@ 2016-08-11 14:26 Christoph Hellwig
  2016-08-11 14:26 ` [PATCH 1/2] ahci: disable correct irq for dymmy ports Christoph Hellwig
  0 siblings, 1 reply; 5+ messages in thread
From: Christoph Hellwig @ 2016-08-11 14:26 UTC (permalink / raw)
  To: tj; +Cc: linux-ide

Hi Tejun,

below are two things in ahci I found while converting the driver
to the new MSI / MSI-X vector allocator.

The first one looks like an obvious bug to me if we every have
these stray ports in a per-port IRQ vector setup.

The others one is more elaborate, but I think the per-port locking
is something we should do for the per-port MSI-X case just like for
the per-port MSI case.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-08-11 17:42 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-11 14:24 [PATCH 1/2] ahci: disable correct irq for dymmy ports Christoph Hellwig
  -- strict thread matches above, loose matches on Subject: below --
2016-08-11 14:26 two ahci fixes from code inspection Christoph Hellwig
2016-08-11 14:26 ` [PATCH 1/2] ahci: disable correct irq for dymmy ports Christoph Hellwig
2016-08-11 16:36   ` Tejun Heo
2016-08-11 17:01     ` Christoph Hellwig
2016-08-11 17:42       ` Tejun Heo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox