scsi: qedi: Allocate IRQs based on msix_cnt
authorNilesh Javali <nilesh.javali@cavium.com>
Wed, 21 Nov 2018 09:25:18 +0000 (01:25 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 29 Nov 2018 01:51:47 +0000 (20:51 -0500)
commit1a291bce5eaf5374627d337157544aa6499ce34a
tree3dad27a71b1998913965196c47060978125c5a9e
parentfa97c51109867c17b91ff01bc21f99d20e446968
scsi: qedi: Allocate IRQs based on msix_cnt

The driver load on some systems failed with error,
[0004:01:00.5]:[qedi_request_msix_irq:2524]:8: request_irq failed.

Allocate the IRQs based on MSIX count obtained from qed module instead of
number of queues.

Signed-off-by: Nilesh Javali <nilesh.javali@cavium.com>
Reviewed-by: Lee Duncan <lduncan@suse.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qedi/qedi_main.c