NTB: move ntb_ctrl handling to init and deinit
authorArindam Nath <arindam.nath@amd.com>
Wed, 5 Feb 2020 15:54:27 +0000 (21:24 +0530)
committerJon Mason <jdmason@kudzu.us>
Fri, 13 Mar 2020 14:04:20 +0000 (10:04 -0400)
commit92abf4cb993ddce258acac32bd0068d1813a79d1
tree0fbf1570d0f2f514744b19e0aac8a3a8bb14cbef
parent673dd0c24779fa9233fd600555132b5ffc1e19e4
NTB: move ntb_ctrl handling to init and deinit

It does not really make sense to enable or disable
the bits of NTB_CTRL register only during enable
and disable link callbacks. They should be done
independent of these callbacks. The correct placement
for that is during the amd_init_side_info() and
amd_deinit_side_info() functions, which are invoked
during probe and remove 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