NTB: ntb_perf: Disable NTB link after clearing peer XLAT registers
PATCH 2/4 NTB: ntb_perf: Disable NTB link after clearing peer XLAT registers
From: Sanjay R Mehta <[email protected]>
If ntb link disabled before clearing peer's XLAT register, the clearing won't have any effect since the link is already down. So modified the sequence so that the link is down only towards the end of the function after clearing the XLAT register
Signed-off-by Sanjay R Mehta <[email protected]>
--- drivers/ntb/test/ntb_perf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/ntb/test/ntb_perf.c +2 -2
@@ -737,8 +737,6 @@ static void perf_disable_service(struct perf_ctx *perf) {int pidx; -ntb_link_disable (perf->ntb); -if (perf->cmd_send == perf_msg_cmd_send) {u64 inbits;
@@ -755,6 +753,8 @@ static void perf_disable_service(struct perf_ctx *perf)for (pidx =0 ; pidx < perf->pcnt; pidx++)flush_work (&perf->peers[pidx].service); + +ntb_link_disable (perf->ntb); }/*==============================================================================
Signature · 1 line
2.7.4