diff options
author | Arindam Nath <arindam.nath@amd.com> | 2020-02-05 21:24:19 +0530 |
---|---|---|
committer | Jon Mason <jdmason@kudzu.us> | 2020-03-13 10:04:19 -0400 |
commit | 52ba447889643ea25545c521e653f956b2480489 (patch) | |
tree | 204b7e54afefc5551a0311624f735be5ab4b4f01 /drivers/ntb | |
parent | cb004c28dd2fabbb57bc03fb002f780054c28780 (diff) |
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 <arindam.nath@amd.com>
Signed-off-by: Jon Mason <jdmason@kudzu.us>
Diffstat (limited to 'drivers/ntb')
-rw-r--r-- | drivers/ntb/hw/amd/ntb_hw_amd.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/ntb/hw/amd/ntb_hw_amd.c b/drivers/ntb/hw/amd/ntb_hw_amd.c index 9a60f34a37c2..150e4db11485 100644 --- a/drivers/ntb/hw/amd/ntb_hw_amd.c +++ b/drivers/ntb/hw/amd/ntb_hw_amd.c @@ -550,6 +550,9 @@ static void amd_handle_event(struct amd_ntb_dev *ndev, int vec) dev_info(dev, "event status = 0x%x.\n", status); break; } + + /* Clear the interrupt status */ + writel(status, mmio + AMD_INTSTAT_OFFSET); } static irqreturn_t ndev_interrupt(struct amd_ntb_dev *ndev, int vec) |