NTB: handle link up, D0 and D3 events correctly
authorArindam Nath <arindam.nath@amd.com>
Wed, 5 Feb 2020 15:54:26 +0000 (21:24 +0530)
committerJon Mason <jdmason@kudzu.us>
Fri, 13 Mar 2020 14:04:20 +0000 (10:04 -0400)
commit673dd0c24779fa9233fd600555132b5ffc1e19e4
treeecc391355cb2fc0b37f77dd35d4e9736e303876e
parent60ceafd151d62eba6c19c27e617269567082a17d
NTB: handle link up, D0 and D3 events correctly

Just like for Link-Down event, Link-Up and D3 events
are also mutually exclusive to Link-Down and D0 events
respectively. So we clear the bitmasks in peer_sta
depending on event type.

Signed-off-by: Arindam Nath <arindam.nath@amd.com>
Signed-off-by: Jon Mason <jdmason@kudzu.us>
drivers/ntb/hw/amd/ntb_hw_amd.c