Skip to content

Commit 0ce57f8

Browse files
Christoph Hellwightejun
authored andcommitted
ahci: fix the single MSI-X case in ahci_init_one
We need to make sure hpriv->irq is set properly if we don't use per-port vectors, so switch from blindly assigning pdev->irq to using pci_irq_vector, which handles all interrupt types correctly. Signed-off-by: Christoph Hellwig <hch@lst.de> Reported-by: Robert Richter <robert.richter@cavium.com> Tested-by: Robert Richter <robert.richter@cavium.com> Tested-by: David Daney <ddaney.cavm@gmail.com> Fixes: 0b9e298 ("ahci: use pci_alloc_irq_vectors") Signed-off-by: Tejun Heo <tj@kernel.org>
1 parent a478b09 commit 0ce57f8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/ata/ahci.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1620,7 +1620,7 @@ static int ahci_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
16201620
/* legacy intx interrupts */
16211621
pci_intx(pdev, 1);
16221622
}
1623-
hpriv->irq = pdev->irq;
1623+
hpriv->irq = pci_irq_vector(pdev, 0);
16241624

16251625
if (!(hpriv->cap & HOST_CAP_SSS) || ahci_ignore_sss)
16261626
host->flags |= ATA_HOST_PARALLEL_SCAN;

0 commit comments

Comments
 (0)