From: Arindam Nath Date: Wed, 5 Feb 2020 15:54:19 +0000 (+0530) Subject: NTB: clear interrupt status register X-Git-Tag: v5.10.7~2947^2~13 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=52ba447889643ea25545c521e653f956b2480489;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: Jon Mason --- diff --git a/drivers/ntb/hw/amd/ntb_hw_amd.c b/drivers/ntb/hw/amd/ntb_hw_amd.c index 9a60f34..150e4db 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)