Skip to content

Commit b433e34

Browse files
RanWang1gregkh
authored andcommitted
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]>
1 parent 081da13 commit b433e34

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/usb/host/xhci-plat.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,7 @@ MODULE_DEVICE_TABLE(acpi, usb_xhci_acpi_match);
445445
static struct platform_driver usb_xhci_driver = {
446446
.probe = xhci_plat_probe,
447447
.remove = xhci_plat_remove,
448+
.shutdown = usb_hcd_platform_shutdown,
448449
.driver = {
449450
.name = "xhci-hcd",
450451
.pm = &xhci_plat_pm_ops,

0 commit comments

Comments
 (0)