OSDN Git Service

scsi: lpfc: Fix sli4 adapter initialization with MSI
authorJames Smart <jsmart2021@gmail.com>
Wed, 14 Aug 2019 23:56:58 +0000 (16:56 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 20 Aug 2019 02:41:11 +0000 (22:41 -0400)
commit07b1b91412c801030752da3d32a543c5522a79d6
treeead1b7797be42b3081a627c42e465563a7fe2148
parent6a224b47fd019d299037e14381ddff438f2d34c8
scsi: lpfc: Fix sli4 adapter initialization with MSI

When forcing the use of MSI (vs MSI-X) the driver is crashing in
pci_irq_get_affinity.

The driver was not using the new pci_alloc_irq_vectors interface in the MSI
path.

Fix by using pci_alloc_irq_vectors() with PCI_RQ_MSI in the MSI path.

Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: James Smart <jsmart2021@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_init.c