diff options
author | Amelie Delaunay <[email protected]> | 2021-12-07 13:45:10 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2021-12-15 18:43:24 +0100 |
commit | fac6bf87c55f7f0733efb0375565fb6a50cf2caf (patch) | |
tree | d71fc894bd50fecefc151721df553ab46edb8c3c /net/lapb/lapb_timer.c | |
parent | f08adf5add9a071160c68bb2a61d697f39ab0758 (diff) |
usb: dwc2: fix STM ID/VBUS detection startup delay in dwc2_driver_probe
When activate_stm_id_vb_detection is enabled, ID and Vbus detection relies
on sensing comparators. This detection needs time to stabilize.
A delay was already applied in dwc2_resume() when reactivating the
detection, but it wasn't done in dwc2_probe().
This patch adds delay after enabling STM ID/VBUS detection. Then, ID state
is good when initializing gadget and host, and avoid to get a wrong
Connector ID Status Change interrupt.
Fixes: a415083a11cc ("usb: dwc2: add support for STM32MP15 SoCs USB OTG HS and FS")
Cc: stable <[email protected]>
Acked-by: Minas Harutyunyan <[email protected]>
Signed-off-by: Amelie Delaunay <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions