| From 407c4183a2e2e2c535b18f5630a2f573aa9e4a7c Mon Sep 17 00:00:00 2001 |
| From: Guoqing Zhang <guoqing.zhang@intel.com> |
| Date: Fri, 7 Apr 2017 17:56:53 +0300 |
| Subject: [PATCH 180/286] usb: xhci: Expose xhci_start() function. |
| |
| Change the visability of xhci_start() so that it |
| can be used when enabling test mode. |
| |
| Signed-off-by: Guoqing Zhang <guoqing.zhang@intel.com> |
| Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com> |
| Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
| (cherry picked from commit 26bba5c767de6724f330cdc2ad28bb783674f5a0) |
| Signed-off-by: Simon Horman <horms+renesas@verge.net.au> |
| --- |
| drivers/usb/host/xhci.c | 2 +- |
| drivers/usb/host/xhci.h | 1 + |
| 2 files changed, 2 insertions(+), 1 deletion(-) |
| |
| --- a/drivers/usb/host/xhci.c |
| +++ b/drivers/usb/host/xhci.c |
| @@ -125,7 +125,7 @@ int xhci_halt(struct xhci_hcd *xhci) |
| /* |
| * Set the run bit and wait for the host to be running. |
| */ |
| -static int xhci_start(struct xhci_hcd *xhci) |
| +int xhci_start(struct xhci_hcd *xhci) |
| { |
| u32 temp; |
| int ret; |
| --- a/drivers/usb/host/xhci.h |
| +++ b/drivers/usb/host/xhci.h |
| @@ -2017,6 +2017,7 @@ typedef void (*xhci_get_quirks_t)(struct |
| int xhci_handshake(void __iomem *ptr, u32 mask, u32 done, int usec); |
| void xhci_quiesce(struct xhci_hcd *xhci); |
| int xhci_halt(struct xhci_hcd *xhci); |
| +int xhci_start(struct xhci_hcd *xhci); |
| int xhci_reset(struct xhci_hcd *xhci); |
| int xhci_init(struct usb_hcd *hcd); |
| int xhci_run(struct usb_hcd *hcd); |