usb: remove usbphy reset 500ms wait [1/1]
authoryuehu mi <yuehu.mi@amlogic.com>
Thu, 17 Jan 2019 12:51:44 +0000 (20:51 +0800)
committeryuehu mi <yuehu.mi@amlogic.com>
Tue, 19 Feb 2019 03:12:15 +0000 (11:12 +0800)
PD#SWPL-4949

Problem:
kernel slow startup

Solution:
remove usbphy reset 500ms wait

Verify:
marconi platform insert U disk, power on boot verify OK

Change-Id: Ieb01e59ad428f98c3df303c7b3bee28397970c74
Signed-off-by: yuehu mi <yuehu.mi@amlogic.com>
drivers/amlogic/usb/phy/phy-aml-new-usb-v2.c

index e862717..0b4e372 100644 (file)
@@ -30,7 +30,6 @@
 int amlogic_new_usbphy_reset_v2(struct amlogic_usb_v2 *phy)
 {
        static int      init_count;
-       int i = 0;
 
        if (!init_count) {
                init_count++;
@@ -39,8 +38,6 @@ int amlogic_new_usbphy_reset_v2(struct amlogic_usb_v2 *phy)
                else
                        writel((readl(phy->reset_regs) | (0x1 << 2)),
                                phy->reset_regs);
-               for (i = 0; i < 1000; i++)
-                       udelay(500);
        }
 
        return 0;