Commit 52ba4478 authored by Arindam Nath's avatar Arindam Nath Committed by Jon Mason

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: default avatarArindam Nath <arindam.nath@amd.com>
Signed-off-by: default avatarJon Mason <jdmason@kudzu.us>
parent cb004c28
...@@ -550,6 +550,9 @@ static void amd_handle_event(struct amd_ntb_dev *ndev, int vec) ...@@ -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); dev_info(dev, "event status = 0x%x.\n", status);
break; break;
} }
/* Clear the interrupt status */
writel(status, mmio + AMD_INTSTAT_OFFSET);
} }
static irqreturn_t ndev_interrupt(struct amd_ntb_dev *ndev, int vec) static irqreturn_t ndev_interrupt(struct amd_ntb_dev *ndev, int vec)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment