projects
/
wrapfs-3.2.y.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f1b5957
)
usb: host: xhci-plat: add a shutdown
author
Ran Wang
<ran.wang_1@nxp.com>
Fri, 6 Mar 2020 09:23:28 +0000
(17:23 +0800)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Thu, 2 Apr 2020 17:02:29 +0000
(19:02 +0200)
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
patch
|
blob
|
history
diff --git
a/drivers/usb/host/xhci-plat.c
b/drivers/usb/host/xhci-plat.c
index 062cf8a84a591126390c3da61a08fcaf66c2d759..c4c40e9d42471ac73f5e70e89ad17b30aede77ed 100644
(file)
--- a/
drivers/usb/host/xhci-plat.c
+++ b/
drivers/usb/host/xhci-plat.c
@@
-284,6
+284,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 = DEV_PM_OPS,