diff options
author | vjagadish <vjagadish@nvidia.com> | 2012-03-05 19:14:58 +0530 |
---|---|---|
committer | Varun Colbert <vcolbert@nvidia.com> | 2012-03-13 16:14:24 -0700 |
commit | 7cf0f9216afd9d9221f2daccd0b283247515e732 (patch) | |
tree | bc902c0f54ebb358331268258e3c43c73a99f79b | |
parent | 19290785c8699a09be27c463f2211c56ffabec23 (diff) |
tegra: usb: host: Fix the race condition in hub control
Fix the race condition in tegra_ehci_hub_control which
is causing the usb not to work on usb instance 1.
Bug 948702
Change-Id: I3e8c7ecc90ee1ec96642292f9a83b09c413e9400
Signed-off-by: vjagadish <vjagadish@nvidia.com>
Reviewed-on: http://git-master/r/89002
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>
-rw-r--r-- | drivers/usb/host/ehci-tegra.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/host/ehci-tegra.c b/drivers/usb/host/ehci-tegra.c index d1ac46cd9fc3..168015da8cb1 100644 --- a/drivers/usb/host/ehci-tegra.c +++ b/drivers/usb/host/ehci-tegra.c @@ -326,6 +326,7 @@ static int tegra_ehci_hub_control( if (tegra->phy->instance == 0 && (typeReq == SetPortFeature && wValue == USB_PORT_FEAT_RESET)) { spin_unlock_irqrestore(&ehci->lock, flags); + mutex_unlock(&tegra->tegra_ehci_hcd_mutex); return tegra_ehci_internal_port_reset(ehci, status_reg); } |