Messages in this thread Patch in this message | | | From | Roger Quadros <> | Subject | [PATCH 5/5] usb: dwc3: host: pass BROKEN_PE flag for known broken revisions | Date | Fri, 18 Mar 2016 14:33:57 +0200 |
| |
From: Felipe Balbi <balbi@kernel.org>
Now that we have a broken pe quirk flag, dwc3 can tell XHCI core about it.
Signed-off-by: Felipe Balbi <balbi@kernel.org> Signed-off-by: Sekhar Nori <nsekhar@ti.com> Signed-off-by: Roger Quadros <rogerq@ti.com> --- drivers/usb/dwc3/host.c | 12 ++++++++++++ 1 file changed, 12 insertions(+)
diff --git a/drivers/usb/dwc3/host.c b/drivers/usb/dwc3/host.c index c679f63..db9347b 100644 --- a/drivers/usb/dwc3/host.c +++ b/drivers/usb/dwc3/host.c @@ -51,6 +51,18 @@ int dwc3_host_init(struct dwc3 *dwc) pdata.usb3_lpm_capable = dwc->usb3_lpm_capable; + /** + * WORKAROUND: dwc3 revisions <=3.00a have a limitation + * where Port Disable command doesn't work. + * + * The suggested workaround is that we avoid Port Disable + * completely. + * + * This following flag tells XHCI to do just that. + */ + if (dwc->revision <= DWC3_REVISION_300A) + pdata.quirk_port_broken_pe = true; + ret = platform_device_add_data(xhci, &pdata, sizeof(pdata)); if (ret) { dev_err(dwc->dev, "couldn't add platform data to xHCI device\n"); -- 2.5.0
| |