FROMLIST: usb: dwc3: add disable u2mac linestate check quirk
authorWilliam Wu <william.wu@rock-chips.com>
Tue, 18 Apr 2017 05:17:39 +0000 (13:17 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Tue, 18 Apr 2017 09:55:20 +0000 (17:55 +0800)
commit6aff8113beb0153472f91f20c2538f6ffafb74f2
tree8fb9974aada5ae931723409d6a96c17dfe0fd58f
parentd444c33b8bf1b13ea0d67061450c7c7d22ae2c5d
FROMLIST: 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.

(am from https://patchwork.kernel.org/patch/9684951/)
Change-Id: I6298f59a5b89a76a90c628a58c932942ede2c3ef
Signed-off-by: William Wu <william.wu@rock-chips.com>
Documentation/devicetree/bindings/usb/dwc3.txt
drivers/usb/dwc3/core.c
drivers/usb/dwc3/core.h