Skip to content

Commit

Permalink
NTB: clear interrupt status register
Browse files Browse the repository at this point in the history
The interrupt status register should be cleared
by driver once the particular event is handled.
The patch fixes this.

Signed-off-by: Arindam Nath <[email protected]>
Signed-off-by: Jon Mason <[email protected]>
  • Loading branch information
amd-anath authored and jonmason committed Mar 13, 2020
1 parent cb004c2 commit 52ba447
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/ntb/hw/amd/ntb_hw_amd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 52ba447

Please sign in to comment.