From 7cf0f9216afd9d9221f2daccd0b283247515e732 Mon Sep 17 00:00:00 2001 From: vjagadish Date: Mon, 5 Mar 2012 19:14:58 +0530 Subject: 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 Reviewed-on: http://git-master/r/89002 Reviewed-by: Varun Colbert Tested-by: Varun Colbert --- drivers/usb/host/ehci-tegra.c | 1 + 1 file changed, 1 insertion(+) 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); } -- cgit v1.2.3