CHROMIUM: usb: xhci-plat: use usb_hcd_platform_shutdown() callback
authorWilliam wu <wulf@rock-chips.com>
Wed, 19 Oct 2016 11:25:05 +0000 (19:25 +0800)
committerWu Liang feng <wulf@rock-chips.com>
Tue, 1 Nov 2016 03:32:05 +0000 (11:32 +0800)
commit9f2b1a77cc843060a6dda1d7321535c8ba924e99
treeb5e871308a19b7dad6b68f5352f706b6d34dc991
parent4aa5b95c1e3dfc70e12196145b8f88672ec40a24
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 <wulf@rock-chips.com>
Reviewed-on: https://chromium-review.googlesource.com/401119
Commit-Ready: Guenter Roeck <groeck@chromium.org>
Tested-by: Guenter Roeck <groeck@chromium.org>
Reviewed-by: Guenter Roeck <groeck@chromium.org>
drivers/usb/host/xhci-plat.c