mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
NTB: ntb_perf: Disable NTB link after clearing peer XLAT registers
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]> Acked-by: Allen Hubbe <[email protected]> Acked-by: Logan Gunthorpe <[email protected]> Acked-by: Serge Semin <[email protected]> Signed-off-by: Jon Mason <[email protected]>
This commit is contained in:
parent
8b2f033631
commit
b1ee5998a5
1 changed files with 2 additions and 2 deletions
|
|
@ -734,8 +734,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;
|
||||
|
||||
|
|
@ -752,6 +750,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);
|
||||
}
|
||||
|
||||
/*==============================================================================
|
||||
|
|
|
|||
Loading…
Reference in a new issue