forked from Minki/linux
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:
parent
cb004c28dd
commit
52ba447889
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user