NTB: define a new function to get link status
authorArindam Nath <arindam.nath@amd.com>
Wed, 5 Feb 2020 15:54:21 +0000 (21:24 +0530)
committerJon Mason <jdmason@kudzu.us>
Fri, 13 Mar 2020 14:04:19 +0000 (10:04 -0400)
commit5c6404d5fa74124c64661ce44d7e447f3bf3df1e
tree6ddf37175698883afcfb2c821dda5a95b41fc8c8
parent8a7cedef441f56bcbdd0a0e70f73510ffb72dc5d
NTB: define a new function to get link status

Since getting the status of link is a logically separate
operation, we simply create a new function which will
store the link status to be used later.

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