summaryrefslogtreecommitdiffstats
path: root/virt
diff options
context:
space:
mode:
authorAmelie Delaunay <amelie.delaunay@foss.st.com>2021-12-07 13:45:10 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-12-15 18:43:24 +0100
commitfac6bf87c55f7f0733efb0375565fb6a50cf2caf (patch)
treed71fc894bd50fecefc151721df553ab46edb8c3c /virt
parentUSB: gadget: bRequestType is a bitfield, not a enum (diff)
downloadlinux-fac6bf87c55f7f0733efb0375565fb6a50cf2caf.tar.xz
linux-fac6bf87c55f7f0733efb0375565fb6a50cf2caf.zip
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 <stable@vger.kernel.org> Acked-by: Minas Harutyunyan <Minas.Harutyunyan@synopsys.com> Signed-off-by: Amelie Delaunay <amelie.delaunay@foss.st.com> Link: https://lore.kernel.org/r/20211207124510.268841-1-amelie.delaunay@foss.st.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'virt')
0 files changed, 0 insertions, 0 deletions