]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00251209-4 msl-mx6: usb: Fix system hang when unload gadget module
authorPeter Chen <peter.chen@freescale.com>
Mon, 4 Mar 2013 09:19:20 +0000 (17:19 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:35:55 +0000 (08:35 +0200)
At gadget module remove function, it closes the clock, but
at platform code, it still visits register. In fact,
The PHY has already been low power mode when driver's remove
before platform code is called.

Signed-off-by: Peter Chen <peter.chen@freescale.com>
arch/arm/mach-mx6/usb_dr.c

index efae4aef6d23261166a497ed9b232881a414b7c2..372253e37268e4d8ddd0136b378e96b1b403ed1d 100644 (file)
@@ -163,9 +163,6 @@ static void usbotg_uninit_ext(struct platform_device *pdev)
 {
        otg_used--;
        if (!otg_used) {
-               enter_phy_lowpower_suspend(pdev->dev.platform_data, true);
-               mdelay(3);
-
                clk_disable(usb_phy1_clk);
                clk_put(usb_phy1_clk);