projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cb004c2
)
NTB: clear interrupt status register
author
Arindam Nath
<arindam.nath@amd.com>
Wed, 5 Feb 2020 15:54:19 +0000
(21:24 +0530)
committer
Jon Mason
<jdmason@kudzu.us>
Fri, 13 Mar 2020 14:04:19 +0000
(10:04 -0400)
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>
drivers/ntb/hw/amd/ntb_hw_amd.c
patch
|
blob
|
history
diff --git
a/drivers/ntb/hw/amd/ntb_hw_amd.c
b/drivers/ntb/hw/amd/ntb_hw_amd.c
index
9a60f34
..
150e4db
100644
(file)
--- 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)