From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chin Liang See Date: Fri, 6 May 2016 21:28:54 +0800 Subject: [U-Boot] [PATCH] usb: dwc2: Add delay to fix the USB detection problem on SoCFPGA In-Reply-To: <1462535617-26561-1-git-send-email-sr@denx.de> References: <1462535617-26561-1-git-send-email-sr@denx.de> Message-ID: <1462541334.25146.11.camel@altera.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Fri, 2016-05-06 at 13:53 +0200, Stefan Roese wrote: > With patch c998da0d (usb: Change power-on / scanning timeout > handling), > the USB scanning is started earlier and with a smaller timeout. This > resulted on SoCFPGA (using the DWC2 driver) in some USB sticks not > getting detected any more. This patch now adds a 1 second delay (in > the host mode only) to the DWC2 driver before the scanning is > started. > With this delay, now all problematic USB keys are detected > successfully > again. And there is no need any more to change the delay / timeout > in the common USB code (usb_hub.c). > > Signed-off-by: Stefan Roese > Cc: Chin Liang See > Cc: Dinh Nguyen > Cc: Hans de Goede > Cc: Stephen Warren > Cc: Marek Vasut > --- > drivers/usb/host/dwc2.c | 9 +++++++++ > 1 file changed, 9 insertions(+) > > For record, works for my problematic pen drives. This is apply on top of Marek's patch except 7/7 Reviewed-by: Chin Liang See Tested-by: Chin Liang See Thanks Chin Liang