linux/drivers/scsi/pm8001
Benjamin Rood c913df3f3d pm80xx: avoid a panic if MSI(X) interrupts are disabled
If MSI(X) interrupts are disabled via the kernel command line
(pci=nomsi), the pm8001 driver will kernel panic because it does not
detect that MSI interrupts are disabled and will soldier on and attempt to
configure MSI interrupts anyways.  This leads to a kernel panic, most
likely because a required data structure is not available down the
line.  Using the pci_msi_enabled() function in order to detect if MSI
interrupts are enabled before configuring them resolves this issue and
avoids a kernel panic when the module is loaded.  Additionally, the
irq_vector structure must be initialized when legacy interrupts are
being used otherwise legacy interrupts will simply not function and
result in another panic.

Signed-off-by: Benjamin Rood <brood@attotech.com>
Reviewed-by: Jack Wang <jinpu.wang@profitbricks.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2015-11-02 23:41:13 -05:00
..
Makefile
pm80xx_hwi.c pm80xx: do not examine registers for iButton feature if ATTO adapter 2015-11-02 23:39:35 -05:00
pm80xx_hwi.h pm80xx: Handling Invalid SSP Response frame 2015-08-26 17:18:31 -07:00
pm8001_chips.h
pm8001_ctl.c pm8001: Update nvmd response data to request buffer 2014-09-16 09:09:48 -07:00
pm8001_ctl.h [SCSI] pm80xx: Firmware logging support. 2013-10-25 09:58:16 +01:00
pm8001_defs.h pm80xx: add support for PMC Sierra 8070 and PMC Sierra 8072 SAS controllers 2015-11-02 23:34:12 -05:00
pm8001_hwi.c pm80xx: Don't override ts->stat on IO_OPEN_CNX_ERROR_HW_RESOURCE_BUSY 2015-09-06 11:53:31 -07:00
pm8001_hwi.h [SCSI] pm80xx: Resetting the phy state. 2013-12-02 10:35:52 -08:00
pm8001_init.c pm80xx: avoid a panic if MSI(X) interrupts are disabled 2015-11-02 23:41:13 -05:00
pm8001_sas.c pm80xx: Fix for Incorrect DMA Unmapping of SG List 2015-08-26 17:11:01 -07:00
pm8001_sas.h pm80xx: set PHY profiles for ATTO 12Gb SAS controllers 2015-11-02 23:39:02 -05:00