usb: host: xhci-plat: add a shutdown
authorRan Wang <ran.wang_1@nxp.com>
Fri, 6 Mar 2020 09:23:28 +0000 (17:23 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Mar 2020 07:25:50 +0000 (08:25 +0100)
commitade2ca96e7a6d5a73c9a72167a6baa8d3f0ecd02
tree9678f463ce75c5259579e002efca136452fdf41a
parentbace911389331f7e4b045bce22aa4f6fa27a66e3
usb: host: xhci-plat: add a shutdown

commit b433e340e7565110b0ce9ca4b3e26f4b97a1decf upstream.

When loading new kernel via kexec, we need to shutdown host controller to
avoid any un-expected memory accessing during new kernel boot.

Signed-off-by: Ran Wang <ran.wang_1@nxp.com>
Cc: stable <stable@vger.kernel.org>
Tested-by: Stephen Boyd <swboyd@chromium.org>
Reviewed-by: Peter Chen <peter.chen@nxp.com>
Link: https://lore.kernel.org/r/20200306092328.41253-1-ran.wang_1@nxp.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-plat.c