OSDN Git Service

NTB: ntb_perf: Disable NTB link after clearing peer XLAT registers
authorSanjay R Mehta <sanju.mehta@amd.com>
Fri, 15 Feb 2019 09:20:30 +0000 (09:20 +0000)
committerJon Mason <jdmason@kudzu.us>
Thu, 13 Jun 2019 12:58:01 +0000 (08:58 -0400)
commitb1ee5998a5d2bb16fb2bb9a03a30a83a55012b92
tree74e8b6b1ef5974282f2257232fc7e75c21ab6d84
parent8b2f033631c2ec735c10846030fad44f3bfdaf07
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 <sanju.mehta@amd.com>
Acked-by: Allen Hubbe <allenbh@gmail.com>
Acked-by: Logan Gunthorpe <logang@deltatee.com>
Acked-by: Serge Semin <fancer.lancer@gmail.com>
Signed-off-by: Jon Mason <jdmason@kudzu.us>
drivers/ntb/test/ntb_perf.c