From 9f2b1a77cc843060a6dda1d7321535c8ba924e99 Mon Sep 17 00:00:00 2001 From: William wu Date: Wed, 19 Oct 2016 19:25:05 +0800 Subject: [PATCH] CHROMIUM: usb: xhci-plat: use usb_hcd_platform_shutdown() callback The xhci driver provides xhci_shutdown() to be called with the main usb_hcd (the USB3 roothub) while do reboot. But actually, xhci-plat never call xhci_shutdwon() during reboot because it doesn't use the usb_hcd_platform_shutdown() helper. So we use use usb_hcd_platform_shutdown() for xhci-plat, and the normal shutdown call trace is: kernel_restart -> kernel_restart_prepare -> device_shutdown -> platform_drv_shutdown -> usb_hcd_platform_shutdown -> xhci_shutdown BUG=chrome-os-partner:59111 TEST=reboot the system Change-Id: I9be424257ea6ba1e51521cbdd01f4698ae1752ad Signed-off-by: William wu Reviewed-on: https://chromium-review.googlesource.com/401119 Commit-Ready: Guenter Roeck Tested-by: Guenter Roeck Reviewed-by: Guenter Roeck --- drivers/usb/host/xhci-plat.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/host/xhci-plat.c b/drivers/usb/host/xhci-plat.c index 4d8f56f8443c..87a6199dc83c 100644 --- a/drivers/usb/host/xhci-plat.c +++ b/drivers/usb/host/xhci-plat.c @@ -292,6 +292,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, -- 2.34.1