-
由 Christoph Hellwig 提交于
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: NChristoph Hellwig <hch@lst.de> Fixes: 0b9e2988 ("ahci: use pci_alloc_irq_vectors") Reported-by: NEmmanuel Benisty <benisty.e@gmail.com> Tested-by: NEmmanuel Benisty <benisty.e@gmail.com> Signed-off-by: NTejun Heo <tj@kernel.org>
17a51f12