Skip to content

Commit fdd8281

Browse files
amd-anathjonmason
authored andcommitted
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 <[email protected]> Signed-off-by: Jon Mason <[email protected]>
1 parent 2465b87 commit fdd8281

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

drivers/ntb/hw/amd/ntb_hw_amd.c

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -253,17 +253,6 @@ static int amd_link_is_up(struct amd_ntb_dev *ndev)
253253
return 1;
254254
}
255255

256-
/* If peer_sta is reset or D0 event, the ISR has
257-
* started a timer to check link status of hardware.
258-
* So here just clear status bit. And if peer_sta is
259-
* D3 or PME_TO, D0/reset event will be happened when
260-
* system wakeup/poweron, so do nothing here.
261-
*/
262-
if (ndev->peer_sta & AMD_PEER_RESET_EVENT)
263-
ndev->peer_sta &= ~AMD_PEER_RESET_EVENT;
264-
else if (ndev->peer_sta & (AMD_PEER_D0_EVENT | AMD_LINK_DOWN_EVENT))
265-
ndev->peer_sta = 0;
266-
267256
return 0;
268257
}
269258

0 commit comments

Comments
 (0)