aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>2014-05-28 07:22:58 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-05-28 16:26:43 -0400
commit94adcdce0d340e06eb9187cad70555d2e8a201f3 (patch)
tree77266dd3c75812f731c91811e512e51ec0d559bc
parentf9da25c798ae7d89a25918cc897c17abb1490e13 (diff)
usb: host: xhci-plat: add xhci_plat_start()
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>
-rw-r--r--drivers/usb/host/xhci-plat.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/usb/host/xhci-plat.c b/drivers/usb/host/xhci-plat.c
index 39c367393eed..29d8adb5c8d1 100644
--- a/drivers/usb/host/xhci-plat.c
+++ b/drivers/usb/host/xhci-plat.c
@@ -37,6 +37,11 @@ static int xhci_plat_setup(struct usb_hcd *hcd)
37 return xhci_gen_setup(hcd, xhci_plat_quirks); 37 return xhci_gen_setup(hcd, xhci_plat_quirks);
38} 38}
39 39
40static int xhci_plat_start(struct usb_hcd *hcd)
41{
42 return xhci_run(hcd);
43}
44
40static const struct hc_driver xhci_plat_xhci_driver = { 45static const struct hc_driver xhci_plat_xhci_driver = {
41 .description = "xhci-hcd", 46 .description = "xhci-hcd",
42 .product_desc = "xHCI Host Controller", 47 .product_desc = "xHCI Host Controller",
@@ -52,7 +57,7 @@ static const struct hc_driver xhci_plat_xhci_driver = {
52 * basic lifecycle operations 57 * basic lifecycle operations
53 */ 58 */
54 .reset = xhci_plat_setup, 59 .reset = xhci_plat_setup,
55 .start = xhci_run, 60 .start = xhci_plat_start,
56 .stop = xhci_stop, 61 .stop = xhci_stop,
57 .shutdown = xhci_shutdown, 62 .shutdown = xhci_shutdown,
58 63