USB: fix delay time to ensure that all power-down signals are set in suspend mode.
authorwlf <wulf@rock-chips.com>
Wed, 23 Apr 2014 01:27:58 +0000 (09:27 +0800)
committerwlf <wulf@rock-chips.com>
Wed, 23 Apr 2014 01:27:58 +0000 (09:27 +0800)
drivers/usb/dwc_otg_310/dwc_otg_hcd_linux.c

index fdf36cc73e5b1959ade171badcca324031171b07..a1aab955819f7a6a9edd53ce09dc5920d26ce9db 100755 (executable)
@@ -773,12 +773,12 @@ static int dwc_otg_hcd_suspend(struct usb_hcd *hcd)
                if(!pldata->get_status(USB_REMOTE_WAKEUP)){
                        if(pldata->phy_suspend)
                                pldata->phy_suspend(pldata, USB_PHY_SUSPEND);
+                       udelay(3);
                        if (pldata->clock_enable)
                                        pldata->clock_enable(pldata, 0);
                }
        }
 
-       udelay(3);
 
        return 0;
 }