diff options
author | Guenter Roeck <linux@roeck-us.net> | 2017-03-18 11:35:28 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2017-03-18 11:35:28 +0000 |
commit | 384a102db6da82d71070269212f998204ab9f56f (patch) | |
tree | bc5c1c5775b840ed39f671b0aa6a3bd52375dee4 | |
parent | 6aabbf668da03f3677ecf6479ccde99ad70d7636 (diff) | |
parent | 24db1c5a1c52c74b0218847c0a4cb1b40678cf84 (diff) | |
download | linaro-android-384a102db6da82d71070269212f998204ab9f56f.tar.gz |
usb: host: xhci-plat: Fix timeout on removal of hot pluggable xhci controllers
am: 24db1c5a1c
Change-Id: I90e3e3aea8ae3d7a3e25067039815fe87c421a9b
-rw-r--r-- | drivers/usb/host/xhci-plat.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/host/xhci-plat.c b/drivers/usb/host/xhci-plat.c index abe360684f0b..5895e84f9dcc 100644 --- a/drivers/usb/host/xhci-plat.c +++ b/drivers/usb/host/xhci-plat.c @@ -274,6 +274,8 @@ static int xhci_plat_remove(struct platform_device *dev) struct xhci_hcd *xhci = hcd_to_xhci(hcd); struct clk *clk = xhci->clk; + xhci->xhc_state |= XHCI_STATE_REMOVING; + usb_remove_hcd(xhci->shared_hcd); usb_phy_shutdown(hcd->usb_phy); |