mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 01:00:52 +07:00
1a91fafa3e
commit c6d580d96f140596d69220f60ce0cfbea4ee5c0f upstream.
i.MX8MM cannot detect certain CDP USB HUBs. usbmisc_imx.c driver is not
following CDP timing requirements defined by USB BC 1.2 specification
and section 3.2.4 Detection Timing CDP.
During Primary Detection the i.MX device should turn on VDP_SRC and
IDM_SINK for a minimum of 40ms (TVDPSRC_ON). After a time of TVDPSRC_ON,
the i.MX is allowed to check the status of the D- line. Current
implementation is waiting between 1ms and 2ms, and certain BC 1.2
complaint USB HUBs cannot be detected. Increase delay to 40ms allowing
enough time for primary detection.
During secondary detection the i.MX is required to disable VDP_SRC and
IDM_SNK, and enable VDM_SRC and IDP_SINK for at least 40ms (TVDMSRC_ON).
Current implementation is not disabling VDP_SRC and IDM_SNK, introduce
disable sequence in imx7d_charger_secondary_detection() function.
VDM_SRC and IDP_SINK should be enabled for at least 40ms (TVDMSRC_ON).
Increase delay allowing enough time for detection.
Cc: <stable@vger.kernel.org>
Fixes:
|
||
---|---|---|
.. | ||
bits.h | ||
ci_hdrc_imx.c | ||
ci_hdrc_imx.h | ||
ci_hdrc_msm.c | ||
ci_hdrc_pci.c | ||
ci_hdrc_tegra.c | ||
ci_hdrc_usb2.c | ||
ci.h | ||
core.c | ||
debug.c | ||
host.c | ||
host.h | ||
Kconfig | ||
Makefile | ||
otg_fsm.c | ||
otg_fsm.h | ||
otg.c | ||
otg.h | ||
udc.c | ||
udc.h | ||
ulpi.c | ||
usbmisc_imx.c |