kernel: bump 5.4 to 5.4.80
[openwrt/openwrt.git] / target / linux / layerscape / patches-5.4 / 820-usb-0020-MLK-16604-1-usb-host-xhci-plat-add-XHCI_MISSING_CAS-.patch
1 From 0767542941c535ebb156087593426bb1fb25e967 Mon Sep 17 00:00:00 2001
2 From: Li Jun <jun.li@nxp.com>
3 Date: Tue, 28 Nov 2017 21:43:18 +0800
4 Subject: [PATCH] MLK-16604-1 usb: host: xhci-plat: add XHCI_MISSING_CAS quirk
5
6 i.MX8MQ USB3 host needs XHCI_MISSING_CAS quirk to warm reset the port to
7 enum the USB3 device plugged in while system sleep, as the port state is
8 stuck in polling mode after resume.
9
10 Signed-off-by: Li Jun <jun.li@nxp.com>
11 Acked-by: Peter Chen <peter.chen@nxp.com>
12 (cherry picked from commit 9f1f4316775a061d3ad46c63f84a377e2ffd015d)
13 ---
14 drivers/usb/host/xhci-plat.c | 4 ++++
15 1 file changed, 4 insertions(+)
16
17 --- a/drivers/usb/host/xhci-plat.c
18 +++ b/drivers/usb/host/xhci-plat.c
19 @@ -291,6 +291,10 @@ static int xhci_plat_probe(struct platfo
20
21 device_property_read_u32(tmpdev, "imod-interval-ns",
22 &xhci->imod_interval);
23 +
24 + if (device_property_read_bool(tmpdev,
25 + "usb3-resume-missing-cas"))
26 + xhci->quirks |= XHCI_MISSING_CAS;
27 }
28
29 hcd->usb_phy = devm_usb_get_phy_by_phandle(sysdev, "usb-phy", 0);