]> git.baikalelectronics.ru Git - kernel.git/commit
ahci: fix the single MSI-X case in ahci_init_one
authorChristoph Hellwig <hch@lst.de>
Tue, 25 Oct 2016 12:04:34 +0000 (14:04 +0200)
committerTejun Heo <tj@kernel.org>
Tue, 25 Oct 2016 15:43:07 +0000 (11:43 -0400)
commit507e2dd7c1c72b1b98dfe1da885ddbf28d960430
treec2091a8c7add241141b0408ade97176e02cdb851
parentf92b28d35e10aeaa27890646193fc7fb562591e4
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: b8172b9230ea ("ahci: use pci_alloc_irq_vectors")
Signed-off-by: Tejun Heo <tj@kernel.org>
drivers/ata/ahci.c