]> asedeno.scripts.mit.edu Git - linux.git/commit
ntb_hw_switchtec: Remove redundant steps of switchtec_ntb_reinit_peer() function
authorJoey Zhang <joey.zhang@microchip.com>
Thu, 6 Jun 2019 07:09:42 +0000 (15:09 +0800)
committerJon Mason <jdmason@kudzu.us>
Thu, 13 Jun 2019 12:59:25 +0000 (08:59 -0400)
commit28e339f100e34608a8f40c5ec6a6f8ef7b826028
tree7894bf6643fead1d8cb1e355a01f901bc0601306
parent18c8c0954d15105b02f7d2f556b9eafae426871f
ntb_hw_switchtec: Remove redundant steps of switchtec_ntb_reinit_peer() function

When a re-initialization is caused by a link event, the driver will
re-setup the shared memory window. But at that time, the shared memory
is still valid, and it's unnecessary to free, reallocate and then
initialize it again. We only need to reconfigure the hardware
registers. Remove the redundant steps from
switchtec_ntb_reinit_peer() function.

Signed-off-by: Joey Zhang <joey.zhang@microchip.com>
Signed-off-by: Wesley Sheng <wesley.sheng@microchip.com>
Reviewed-by: Logan Gunthorpe <logang@deltatee.com>
Signed-off-by: Jon Mason <jdmason@kudzu.us>
drivers/ntb/hw/mscc/ntb_hw_switchtec.c