u-boot/drivers/usb/dwc3
Jagan Teki dc18413adb usb: dwc3: Add disable u2mac linestate check quirk
This patch adds a quirk to disable USB 2.0 MAC linestate check
during HS transmit. Refer the dwc3 databook, we can use it for
some special platforms if the linestate not reflect the expected
line state(J) during transmission.

When use this quirk, the controller implements a fixed 40-bit
TxEndDelay after the packet is given on UTMI and ignores the
linestate during the transmit of a token (during token-to-token
and token-to-data IPGAP).

On some rockchip platforms (e.g. rk3399), it requires to disable
the u2mac linestate check to decrease the SSPLIT token to SETUP
token inter-packet delay from 566ns to 466ns, and fix the issue
that FS/LS devices not recognized if inserted through USB 3.0 HUB.

Reference from below Linux commit,

commit <65db7a0c9816> ("usb: dwc3: add disable u2mac linestate
check quirk")

Cc: Marek Vasut <marex@denx.de>
Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
2020-05-29 18:13:19 +08:00
..
core.c usb: dwc3: Add disable u2mac linestate check quirk 2020-05-29 18:13:19 +08:00
core.h usb: dwc3: Add disable u2mac linestate check quirk 2020-05-29 18:13:19 +08:00
dwc3-generic.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
dwc3-meson-g12a.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
dwc3-omap.c dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
dwc3-uniphier.c dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
ep0.c common: Drop linux/bug.h from common header 2020-05-18 21:19:23 -04:00
gadget.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
gadget.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
io.h common: Move ARM cache operations out of common.h 2019-12-02 18:24:58 -05:00
Kconfig usb: dwc3: Kconfig: get rid of obsolete mode selection 2019-10-24 11:28:17 +02:00
linux-compat.h bug.h: introduce WARN_ONCE 2018-06-07 17:08:06 -04:00
Makefile usb: dwc3: Add Meson G12A USB Glue 2019-05-09 10:38:32 +02:00
samsung_usb_phy.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
ti_usb_phy.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00