]> git.karo-electronics.de Git - linux-beck.git/commitdiff
usb: host: ehci-msm: Register usb shutdown function
authorAzriel Samson <asamson@codeaurora.org>
Fri, 11 Dec 2015 00:28:57 +0000 (18:28 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 25 Jan 2016 04:51:18 +0000 (20:51 -0800)
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>
drivers/usb/host/ehci-msm.c

index b71947d04fed2a8adbd23f0cd13db058bc734652..3e226ef6ca624351c1c53c6709a22f02b2714e88 100644 (file)
@@ -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,