fd64f2f10bcc394f4b35e7f8b2e608c2b50df6c9
[openwrt/staging/hauke.git] /
1 From 6921c206918a2bd9882bbf77211d37a063233d95 Mon Sep 17 00:00:00 2001
2 From: Li Jun <jun.li@nxp.com>
3 Date: Thu, 8 Aug 2019 16:13:40 +0800
4 Subject: [PATCH] MLK-22099 usb: host: xhci: do warm reset for link state
5 rxdect
6
7 As some USB3 port will lose link state while system sleep, then
8 the link state will be at rxdect after resume, we need a warm
9 reset to bring it back, so add the rxdect condition for CAS
10 missing.
11
12 Signed-off-by: Li Jun <jun.li@nxp.com>
13 ---
14 drivers/usb/host/xhci-hub.c | 3 ++-
15 1 file changed, 2 insertions(+), 1 deletion(-)
16
17 --- a/drivers/usb/host/xhci-hub.c
18 +++ b/drivers/usb/host/xhci-hub.c
19 @@ -1737,7 +1737,8 @@ static bool xhci_port_missing_cas_quirk(
20 return false;
21
22 if (((portsc & PORT_PLS_MASK) != XDEV_POLLING) &&
23 - ((portsc & PORT_PLS_MASK) != XDEV_COMP_MODE))
24 + ((portsc & PORT_PLS_MASK) != XDEV_COMP_MODE) &&
25 + ((portsc & PORT_PLS_MASK) != XDEV_RXDETECT))
26 return false;
27
28 /* clear wakeup/change bits, and do a warm port reset */