diff options
author | Arindam Nath <arindam.nath@amd.com> | 2020-02-05 18:54:24 +0300 |
---|---|---|
committer | Jon Mason <jdmason@kudzu.us> | 2020-03-13 17:04:20 +0300 |
commit | fdd8281fb0bc9afddba93672e267aff1b5561215 (patch) | |
tree | c00aac3c00fc8aba2294de3c17c9ce879f2645a7 /drivers/ntb/hw | |
parent | 2465b87ce36ea2dbd97e5fb58a0efd284c9f687e (diff) | |
download | linux-fdd8281fb0bc9afddba93672e267aff1b5561215.tar.xz |
NTB: remove handling of peer_sta from amd_link_is_up
amd_link_is_up() is a callback to inquire whether
the NTB link is up or not. So it should not indulge
itself into clearing the bitmasks of peer_sta.
Signed-off-by: Arindam Nath <arindam.nath@amd.com>
Signed-off-by: Jon Mason <jdmason@kudzu.us>
Diffstat (limited to 'drivers/ntb/hw')
-rw-r--r-- | drivers/ntb/hw/amd/ntb_hw_amd.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/drivers/ntb/hw/amd/ntb_hw_amd.c b/drivers/ntb/hw/amd/ntb_hw_amd.c index b85af150f2c6..e964442ae2c3 100644 --- a/drivers/ntb/hw/amd/ntb_hw_amd.c +++ b/drivers/ntb/hw/amd/ntb_hw_amd.c @@ -253,17 +253,6 @@ static int amd_link_is_up(struct amd_ntb_dev *ndev) return 1; } - /* If peer_sta is reset or D0 event, the ISR has - * started a timer to check link status of hardware. - * So here just clear status bit. And if peer_sta is - * D3 or PME_TO, D0/reset event will be happened when - * system wakeup/poweron, so do nothing here. - */ - if (ndev->peer_sta & AMD_PEER_RESET_EVENT) - ndev->peer_sta &= ~AMD_PEER_RESET_EVENT; - else if (ndev->peer_sta & (AMD_PEER_D0_EVENT | AMD_LINK_DOWN_EVENT)) - ndev->peer_sta = 0; - return 0; } |