From: Qi Duan Date: Tue, 11 Jul 2017 07:39:28 +0000 (+0800) Subject: USB: dwc3 controller not support lpm for some usb disk has lpm feature X-Git-Tag: khadas-vims-v0.9.6-release~3010 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f0e5c83324aaff3cd464b43be64124e0b9145223;p=platform%2Fkernel%2Flinux-amlogic.git USB: dwc3 controller not support lpm for some usb disk has lpm feature PD#147335: USB: dwc3 controller not support lpm for some usb disk whitch has lpm feature [1/1] Change-Id: I1cdd12d39fcc59ca50275f4c4e1f1cd674d47051 Signed-off-by: Qi Duan --- diff --git a/drivers/usb/host/xhci-mem.c b/drivers/usb/host/xhci-mem.c index 8c6eafe..e682f85 100644 --- a/drivers/usb/host/xhci-mem.c +++ b/drivers/usb/host/xhci-mem.c @@ -2198,7 +2198,11 @@ static void xhci_add_in_port(struct xhci_hcd *xhci, unsigned int num_ports, if ((xhci->hci_version >= 0x100) && (major_revision != 0x03)) { xhci_dbg_trace(xhci, trace_xhci_dbg_init, "xHCI 1.0: support USB2 software lpm"); +#ifdef CONFIG_AMLOGIC_USB + xhci->sw_lpm_support = 0; +#else xhci->sw_lpm_support = 1; +#endif if (temp & XHCI_HLC) { xhci_dbg_trace(xhci, trace_xhci_dbg_init, "xHCI 1.0: support USB2 hardware lpm");