Skip to content

Commit

Permalink
scsi: aacraid: Fix INTx/MSI-x issue with older controllers
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Dave Carroll authored and martinkpetersen committed Feb 10, 2017
1 parent ffdadd6 commit 8af8e1c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions drivers/scsi/aacraid/comminit.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,13 @@ struct aac_common aac_config = {

static inline int aac_is_msix_mode(struct aac_dev *dev)
{
u32 status;
u32 status = 0;

status = src_readl(dev, MUnit.OMR);
if (dev->pdev->device == PMC_DEVICE_S6 ||
dev->pdev->device == PMC_DEVICE_S7 ||
dev->pdev->device == PMC_DEVICE_S8) {
status = src_readl(dev, MUnit.OMR);
}
return (status & AAC_INT_MODE_MSIX);
}

Expand Down

0 comments on commit 8af8e1c

Please sign in to comment.