Skip to content
Snippets Groups Projects
  • Stefan Roese's avatar
    2bf352f0
    usb: dwc2: Add delay to fix the USB detection problem on SoCFPGA · 2bf352f0
    Stefan Roese authored
    
    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: default avatarStefan Roese <sr@denx.de>
    Cc: Chin Liang See <clsee@altera.com>
    Cc: Dinh Nguyen <dinguyen@opensource.altera.com>
    Cc: Hans de Goede <hdegoede@redhat.com>
    Cc: Stephen Warren <swarren@nvidia.com>
    Cc: Marek Vasut <marex@denx.de>
    2bf352f0
    History
    usb: dwc2: Add delay to fix the USB detection problem on SoCFPGA
    Stefan Roese authored
    
    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: default avatarStefan Roese <sr@denx.de>
    Cc: Chin Liang See <clsee@altera.com>
    Cc: Dinh Nguyen <dinguyen@opensource.altera.com>
    Cc: Hans de Goede <hdegoede@redhat.com>
    Cc: Stephen Warren <swarren@nvidia.com>
    Cc: Marek Vasut <marex@denx.de>