Skip to content
Commit 17a51f12 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Tejun Heo
Browse files

ahci: only try to use multi-MSI mode if there is more than 1 port



We should only try to allocate multiple MSI or MSI-X vectors if the device
actually has multiple ports.  Otherwise pci_alloc_irq_vectors will return
a single vector due to n_ports = 1, in which case we shouldn't set the
AHCI_HFLAG_MULTI_MSI flag.

Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Fixes: 0b9e2988 ("ahci: use pci_alloc_irq_vectors")
Reported-by: default avatarEmmanuel Benisty <benisty.e@gmail.com>
Tested-by: default avatarEmmanuel Benisty <benisty.e@gmail.com>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
parent 1001354c
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment