[SCSI] hpsa: fixup MSI-X registration
authorHannes Reinecke <hare@suse.de>
Wed, 15 Jan 2014 12:30:53 +0000 (13:30 +0100)
committerJames Bottomley <JBottomley@Parallels.com>
Sat, 15 Mar 2014 17:19:01 +0000 (10:19 -0700)
commiteee0f03a547f50ca81a8d01ee9f1c84fecd1f64c
tree16458ace56ca4a5b5557d0d36b23d39810181828
parent6e40e5f021d9f322342f3757d092431ed8c6b6d8
[SCSI] hpsa: fixup MSI-X registration

Commit 254f796b9f22b1944c64caabc356a56caaa2facd updated
the driver to use 16 MSI-X vectors, despite the fact that
older controllers would provide only 4.
This was causing MSI-X registration to drop down to INTx
mode. But as the controller support performant mode, the
initialisation will become confused and cause the machine
to stall during boot.

This patch fixes up the MSI-X registration to re-issue
the pci_enable_msix() call with the correct number of
MSI-X vectors. With that the hpsa driver continues to
works on older controllers like the P200.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Acked-by: Stephen M. Cameron <scameron@beardog.cce.hp.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/hpsa.c