Skip to content

Commit

Permalink
scsi: megaraid_sas: Retry reads of outbound_intr_status reg
Browse files Browse the repository at this point in the history
ANBZ: torvalds#633

commit c65bfc8 upstream.

commit 272652f ("scsi: megaraid_sas: add retry logic in megasas_readl")
missed changing readl to megasas_readl in megasas_clear_intr_fusion().  For
Aero controllers, reads of outbound_intr_status register needs to be
retried.

Reported-by: Tomas Henzl <[email protected]>
Signed-off-by: Shivasharan S <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Reviewed-by: Xunlei Pang <[email protected]>
Signed-off-by: Guixin Liu <[email protected]>
  • Loading branch information
shivasharan-s authored and guixinliu1995 committed Mar 10, 2022
1 parent 8789ddc commit 6fb070a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/scsi/megaraid/megaraid_sas_fusion.c
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,8 @@ megasas_clear_intr_fusion(struct megasas_instance *instance)
/*
* Check if it is our interrupt
*/
status = readl(&regs->outbound_intr_status);
status = megasas_readl(instance,
&regs->outbound_intr_status);

if (status & 1) {
writel(status, &regs->outbound_intr_status);
Expand Down

0 comments on commit 6fb070a

Please sign in to comment.