Skip to content

Commit 52ba447

Browse files
amd-anathjonmason
authored andcommitted
NTB: clear interrupt status register
The interrupt status register should be cleared by driver once the particular event is handled. The patch fixes this. Signed-off-by: Arindam Nath <[email protected]> Signed-off-by: Jon Mason <[email protected]>
1 parent cb004c2 commit 52ba447

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/ntb/hw/amd/ntb_hw_amd.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -550,6 +550,9 @@ static void amd_handle_event(struct amd_ntb_dev *ndev, int vec)
550550
dev_info(dev, "event status = 0x%x.\n", status);
551551
break;
552552
}
553+
554+
/* Clear the interrupt status */
555+
writel(status, mmio + AMD_INTSTAT_OFFSET);
553556
}
554557

555558
static irqreturn_t ndev_interrupt(struct amd_ntb_dev *ndev, int vec)

0 commit comments

Comments
 (0)