Skip to content

Commit 8af8e1c

Browse files
Dave Carrollmartinkpetersen
authored andcommitted
scsi: aacraid: Fix INTx/MSI-x issue with older controllers
commit 78cbccd ("aacraid: Fix for KDUMP driver hang") caused a problem on older controllers which do not support MSI-x (namely ASR3405,ASR3805). This patch conditionalizes the previous patch to controllers which support MSI-x Cc: <[email protected]> # v4.7+ Fixes: 78cbccd ("aacraid: Fix for KDUMP driver hang") Reported-by: Arkadiusz Miskiewicz <[email protected]> Signed-off-by: Dave Carroll <[email protected]> Reviewed-by: Raghava Aditya Renukunta <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent ffdadd6 commit 8af8e1c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

drivers/scsi/aacraid/comminit.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,13 @@ struct aac_common aac_config = {
5050

5151
static inline int aac_is_msix_mode(struct aac_dev *dev)
5252
{
53-
u32 status;
53+
u32 status = 0;
5454

55-
status = src_readl(dev, MUnit.OMR);
55+
if (dev->pdev->device == PMC_DEVICE_S6 ||
56+
dev->pdev->device == PMC_DEVICE_S7 ||
57+
dev->pdev->device == PMC_DEVICE_S8) {
58+
status = src_readl(dev, MUnit.OMR);
59+
}
5660
return (status & AAC_INT_MODE_MSIX);
5761
}
5862

0 commit comments

Comments
 (0)