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>
This commit is contained in:
Arindam Nath 2020-02-05 21:24:19 +05:30 committed by Jon Mason
parent cb004c28dd
commit 52ba447889
1 changed files with 3 additions and 0 deletions

View File

@ -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)