usb: host: tegra: fix delay in driver remove properly
Rohith Seelaboyina [Thu, 27 Jun 2013 12:40:29 +0000 (17:40 +0530)]
mdelay is replaced with msleep as the earlier blocks
the cpu and a hang is observed

Bug 1299561

Change-Id: I2c644a6af95ee014a21df2ab6e5d649fc796ee3d
Signed-off-by: Rohith Seelaboyina <rseelaboyina@nvidia.com>
Reviewed-on: http://git-master/r/243763
(cherry picked from commit c08d3dee06dea7d01d481d1e39c7af09f055921f)
Reviewed-on: http://git-master/r/250674
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

drivers/usb/host/ehci-tegra.c

index 3c9fd92..1bd696a 100644 (file)
@@ -669,7 +669,7 @@ static int tegra_ehci_remove(struct platform_device *pdev)
                        ;
 
                /* wait for any control packets sent to root hub to complete */
-               mdelay(1000);
+               msleep(1000);
        }
 
        usb_remove_hcd(hcd);