NTB: return the side info status from amd_poll_link
authorArindam Nath <arindam.nath@amd.com>
Wed, 5 Feb 2020 15:54:22 +0000 (21:24 +0530)
committerJon Mason <jdmason@kudzu.us>
Fri, 13 Mar 2020 14:04:19 +0000 (10:04 -0400)
commit5cafa48502c833fa175d2d16a26d1b4e0702aa74
tree36b43477c287bd7fd19f76bff3b8fa481812114b
parent5c6404d5fa74124c64661ce44d7e447f3bf3df1e
NTB: return the side info status from amd_poll_link

Bit 1 of SIDE_INFO register is an indication that
the driver on the other side of link is ready. We
set this bit during driver initialization sequence.
So rather than having separate macros to return the
status, we can simply return the status of this bit
from amd_poll_link(). So a return of 1 or 0 from
this function will indicate to the caller whether
the driver on the other side of link is ready or not,
respectively.

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
drivers/ntb/hw/amd/ntb_hw_amd.h