diff options
Diffstat (limited to 'drivers/usb/host/xhci-hub.c')
| -rw-r--r-- | drivers/usb/host/xhci-hub.c | 5 | 
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/usb/host/xhci-hub.c b/drivers/usb/host/xhci-hub.c index e8b4c56dcf6..805f2348eeb 100644 --- a/drivers/usb/host/xhci-hub.c +++ b/drivers/usb/host/xhci-hub.c @@ -296,7 +296,7 @@ static int xhci_stop_device(struct xhci_hcd *xhci, int slot_id, int suspend)  	/* Wait for last stop endpoint command to finish */  	timeleft = wait_for_completion_interruptible_timeout(  			cmd->completion, -			USB_CTRL_SET_TIMEOUT); +			XHCI_CMD_DEFAULT_TIMEOUT);  	if (timeleft <= 0) {  		xhci_warn(xhci, "%s while waiting for stop endpoint command\n",  				timeleft == 0 ? "Timeout" : "Signal"); @@ -524,7 +524,8 @@ static void xhci_hub_report_usb3_link_state(u32 *status, u32 status_reg)   * the compliance mode timer is deleted. A port won't enter   * compliance mode if it has previously entered U0.   */ -void xhci_del_comp_mod_timer(struct xhci_hcd *xhci, u32 status, u16 wIndex) +static void xhci_del_comp_mod_timer(struct xhci_hcd *xhci, u32 status, +				    u16 wIndex)  {  	u32 all_ports_seen_u0 = ((1 << xhci->num_usb3_ports)-1);  	bool port_in_u0 = ((status & PORT_PLS_MASK) == XDEV_U0);  | 
