diff options
author | Ran Wang <[email protected]> | 2020-03-06 17:23:28 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2020-03-12 09:37:26 +0100 |
commit | b433e340e7565110b0ce9ca4b3e26f4b97a1decf (patch) | |
tree | 27d9b8f2b42220e4eeb028cb82de217784b7d60d | |
parent | 081da1325d351ea8804cf74e65263ea120834f33 (diff) |
usb: host: xhci-plat: add a shutdown
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 <[email protected]>
Cc: stable <[email protected]>
Tested-by: Stephen Boyd <[email protected]>
Reviewed-by: Peter Chen <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
-rw-r--r-- | drivers/usb/host/xhci-plat.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/host/xhci-plat.c b/drivers/usb/host/xhci-plat.c index d90cd5ec09cf..315b4552693c 100644 --- a/drivers/usb/host/xhci-plat.c +++ b/drivers/usb/host/xhci-plat.c @@ -445,6 +445,7 @@ MODULE_DEVICE_TABLE(acpi, usb_xhci_acpi_match); static struct platform_driver usb_xhci_driver = { .probe = xhci_plat_probe, .remove = xhci_plat_remove, + .shutdown = usb_hcd_platform_shutdown, .driver = { .name = "xhci-hcd", .pm = &xhci_plat_pm_ops, |