summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAzriel Samson2015-12-11 01:28:57 +0100
committerGreg Kroah-Hartman2016-01-25 05:51:18 +0100
commit4bb3cad7125ba03255025cf1e4e7c638e4757f6c (patch)
tree834a8acf7d0be1727b66e1a48904f504d6d40b7b
parentusb: host: ehci-msm: Fix register initialization (diff)
downloadkernel-qcow2-linux-4bb3cad7125ba03255025cf1e4e7c638e4757f6c.tar.gz
kernel-qcow2-linux-4bb3cad7125ba03255025cf1e4e7c638e4757f6c.tar.xz
kernel-qcow2-linux-4bb3cad7125ba03255025cf1e4e7c638e4757f6c.zip
usb: host: ehci-msm: Register usb shutdown function
Registering usb_hcd_platform_shutdown to be called during shutdown. This is a generic function that performs the generic host stack's shutdown. It ensures that USB operations do not continue while kexec boots a new kernel. Signed-off-by: Azriel Samson <asamson@codeaurora.org> Signed-off-by: Timur Tabi <timur@codeaurora.org> Reviewed-by: Andy Gross <andy.gross@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/usb/host/ehci-msm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/host/ehci-msm.c b/drivers/usb/host/ehci-msm.c
index b71947d04fed..3e226ef6ca62 100644
--- a/drivers/usb/host/ehci-msm.c
+++ b/drivers/usb/host/ehci-msm.c
@@ -220,6 +220,7 @@ MODULE_DEVICE_TABLE(of, msm_ehci_dt_match);
static struct platform_driver ehci_msm_driver = {
.probe = ehci_msm_probe,
.remove = ehci_msm_remove,
+ .shutdown = usb_hcd_platform_shutdown,
.driver = {
.name = "msm_hsusb_host",
.pm = &ehci_msm_dev_pm_ops,