| From 63a5e286029417ef52ea51e6d453ef67312e0023 Mon Sep 17 00:00:00 2001 |
| From: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> |
| Date: Wed, 28 May 2014 20:22:58 +0900 |
| Subject: 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> |
| (cherry picked from commit 94adcdce0d340e06eb9187cad70555d2e8a201f3) |
| Signed-off-by: Simon Horman <horms+renesas@verge.net.au> |
| --- |
| drivers/usb/host/xhci-plat.c | 7 ++++++- |
| 1 file changed, 6 insertions(+), 1 deletion(-) |
| |
| diff --git a/drivers/usb/host/xhci-plat.c b/drivers/usb/host/xhci-plat.c |
| index 20ee3ae21823..ea9e4a210c58 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) |
| 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, |
| |
| -- |
| 2.1.2 |
| |