]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
usb: host: xhci-plat: add xhci_plat_start()
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Wed, 28 May 2014 11:22:58 +0000 (20:22 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 May 2014 20:26:43 +0000 (13:26 -0700)
Some platforms (such as the Renesas R-Car) need to initialize some specific
registers after xhci driver calls usb_add_hcd() and before the driver calls
xhci_run(). So, this patch adds the xhci_plat_start() function.

Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-plat.c

index 39c367393eed465f93db7d7b0e2f3aeb5791bb70..29d8adb5c8d15a7df3d4937f0b5e998c106f9a10 100644 (file)
@@ -37,6 +37,11 @@ static int xhci_plat_setup(struct usb_hcd *hcd)
        return xhci_gen_setup(hcd, xhci_plat_quirks);
 }
 
+static int xhci_plat_start(struct usb_hcd *hcd)
+{
+       return xhci_run(hcd);
+}
+
 static const struct hc_driver xhci_plat_xhci_driver = {
        .description =          "xhci-hcd",
        .product_desc =         "xHCI Host Controller",
@@ -52,7 +57,7 @@ static const struct hc_driver xhci_plat_xhci_driver = {
         * basic lifecycle operations
         */
        .reset =                xhci_plat_setup,
-       .start =                xhci_run,
+       .start =                xhci_plat_start,
        .stop =                 xhci_stop,
        .shutdown =             xhci_shutdown,