From 101f22317f92a51ade871f1b3144c724df1c9e9c Mon Sep 17 00:00:00 2001 From: Peter Chen Date: Fri, 3 Jul 2020 17:24:38 +0800 Subject: [PATCH] MLK-24368-2 usb: cdns3: host: indicate controller has stream capability Indicate the controller has stream capability, it is useful for UAS device. Reviewed-by: Jun Li Signed-off-by: Peter Chen --- drivers/usb/cdns3/host.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/usb/cdns3/host.c b/drivers/usb/cdns3/host.c index bddaa233913d..8d985ee788a2 100644 --- a/drivers/usb/cdns3/host.c +++ b/drivers/usb/cdns3/host.c @@ -185,6 +185,9 @@ static int cdns3_host_start(struct cdns3 *cdns) if (ret) goto err4; + if (HCC_MAX_PSA(xhci->hcc_params) >= 4) + xhci->shared_hcd->can_do_streams = 1; + ret = usb_add_hcd(xhci->shared_hcd, 0, IRQF_SHARED); if (ret) goto err5;