usb: husb: increase HUB_DEBOUNCE_TIMEOUT
Increase HUB_DEBOUNCE_TIMEOUT to 2000 because some usb device needs around 1.5 or more to make the hub port status to be connected steadily after being powered off and powered on. These value is aligned with Linux driver and avoids to configure "usb_pgood_delay" as a workaround for connection timeout on some USB device; normally the env variable "usb_pgood_delay" is used to delay the first query after power ON and thus the device answer, not to increase the connection timeout delay. Commit-notes: Hi, I think this patch solves a general issue because a 1s timeout for USB connection is too short on problematic USB keys. The issue was introduced by the commitc998da0d67("usb: Change power-on / scanning timeout handling") Patch in usb_hub allow to avoid patch in each board/driver. for example, commit0417169054("imx: ventana: add usb_pgood_delay 2sec default") => use pgood_delay = 2s !? ("ARM: stm32: Increase USB power-good delay on DHSOM") https://patchwork.ozlabs.org/project/uboot/patch/20211113022444.231801-1-marex@denx.de/ or commit2bf352f0c1("usb: dwc2: Add delay to fix the USB detection problem on SoCFPGA") => patch in USB DWC2 driver to add a timeout in driver the commit319418c01c("usb: hub: allow pgood_delay to be specified via env") => introduce env variable for warm-up times Patrick END Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com> Change-Id: I5eabf3f9fdbbaf763cd44e9c018cb5b74a0c65ac Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/u-boot/+/236836 Reviewed-by: CITOOLS <MDG-smet-aci-reviews@list.st.com>
This commit is contained in:
committed by
Patrice Chotard
parent
1d337aa8dc
commit
8dfc59ce95
@ -47,7 +47,7 @@
|
||||
#define HUB_SHORT_RESET_TIME 20
|
||||
#define HUB_LONG_RESET_TIME 200
|
||||
|
||||
#define HUB_DEBOUNCE_TIMEOUT 1000
|
||||
#define HUB_DEBOUNCE_TIMEOUT 2000
|
||||
|
||||
#define PORT_OVERCURRENT_MAX_SCAN_COUNT 3
|
||||
|
||||
|
||||
Reference in New Issue
Block a user