Skip to content

Commit 6337f58

Browse files
ahunter6martinkpetersen
authored andcommitted
scsi: ufs: Fix interrupt error message for shared interrupts
The interrupt might be shared, in which case it is not an error for the interrupt handler to be called when the interrupt status is zero, so don't print the message unless there was enabled interrupt status. Link: https://lore.kernel.org/r/[email protected] Fixes: 9333d77 ("scsi: ufs: Fix irq return code") Reviewed-by: Avri Altman <[email protected]> Signed-off-by: Adrian Hunter <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent 8da76f7 commit 6337f58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/scsi/ufs/ufshcd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5969,7 +5969,7 @@ static irqreturn_t ufshcd_intr(int irq, void *__hba)
59695969
intr_status = ufshcd_readl(hba, REG_INTERRUPT_STATUS);
59705970
} while (intr_status && --retries);
59715971

5972-
if (retval == IRQ_NONE) {
5972+
if (enabled_intr_status && retval == IRQ_NONE) {
59735973
dev_err(hba->dev, "%s: Unhandled interrupt 0x%08x\n",
59745974
__func__, intr_status);
59755975
ufshcd_dump_regs(hba, 0, UFSHCI_REG_SPACE_SIZE, "host_regs: ");

0 commit comments

Comments
 (0)