From cbbecf36f036be4374d29c53974f086426a3dc8c Mon Sep 17 00:00:00 2001 From: yuehu mi Date: Thu, 17 Jan 2019 20:51:44 +0800 Subject: [PATCH] usb: remove usbphy reset 500ms wait [1/1] 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 --- drivers/amlogic/usb/phy/phy-aml-new-usb-v2.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/amlogic/usb/phy/phy-aml-new-usb-v2.c b/drivers/amlogic/usb/phy/phy-aml-new-usb-v2.c index e862717..0b4e372 100644 --- a/drivers/amlogic/usb/phy/phy-aml-new-usb-v2.c +++ b/drivers/amlogic/usb/phy/phy-aml-new-usb-v2.c @@ -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; -- 2.7.4