Message ID | 20200306092328.41253-1-ran.wang_1@nxp.com (mailing list archive) |
---|---|
State | Mainlined |
Commit | b433e340e7565110b0ce9ca4b3e26f4b97a1decf |
Headers | show |
Series | usb: host: xhci-plat: add a shutdown | expand |
Quoting Ran Wang (2020-03-06 01:23:28) > 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> > Reviewed-by: Peter Chen <peter.chen@nxp.com> > --- Tested-by: Stephen Boyd <swboyd@chromium.org> This fixes a problem I see where USB is still active during an orderly reboot.
diff --git a/drivers/usb/host/xhci-plat.c b/drivers/usb/host/xhci-plat.c index d90cd5e..315b455 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,