diff options
| author | Chandana Kishori Chiluveru <cchiluve@codeaurora.org> | 2016-06-21 13:30:59 +0530 |
|---|---|---|
| committer | Chandana Kishori Chiluveru <cchiluve@codeaurora.org> | 2016-07-12 12:15:21 +0530 |
| commit | c6599722caad16f0758be54a60f0b093570022ac (patch) | |
| tree | 50f6b1a70f5622b8b25ad2b63e1f618408da5765 | |
| parent | 30f5d80b01688672b5910d3c80b1da1f79106e37 (diff) | |
usb: xhci-plat: Add XHCI_STATE_REMOVING flag on removal of usb device
Commit 5dcd26f4e903 ("xhci: fix 10 second timeout on removal of PCI
hotpluggable xhci controllers") avoids queueing configure_endpoint
commands for the dropped endpoints.
This change adds XHCI_STATE_REMOVING flag on removal of usb device.
For usb XHCI hotplugged controllers this will prevent 5 second command
timeouts and avoid the races with mutex lock.
CRs-Fixed: 1031459
Change-Id: Ic953c4ea17562357cb3845b77c0ab08b7daa1a4d
Signed-off-by: Chandana Kishori Chiluveru <cchiluve@codeaurora.org>
| -rw-r--r-- | drivers/usb/host/xhci-plat.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/host/xhci-plat.c b/drivers/usb/host/xhci-plat.c index 197757c20102..a1c661a2a60d 100644 --- a/drivers/usb/host/xhci-plat.c +++ b/drivers/usb/host/xhci-plat.c @@ -284,6 +284,7 @@ static int xhci_plat_remove(struct platform_device *dev) pm_runtime_disable(&dev->dev); device_remove_file(&dev->dev, &dev_attr_config_imod); + xhci->xhc_state |= XHCI_STATE_REMOVING; usb_remove_hcd(xhci->shared_hcd); usb_phy_shutdown(hcd->usb_phy); |
