All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] usb: xhci-mtk: check hcc_params after adding primary hcd
@ 2017-03-07  3:32 ` Chunfeng Yun
  0 siblings, 0 replies; 20+ messages in thread
From: Chunfeng Yun @ 2017-03-07  3:32 UTC (permalink / raw)
  To: Mathias Nyman
  Cc: Matthias Brugger, Felipe Balbi, Chunfeng Yun, linux-kernel,
	linux-arm-kernel, linux-usb, linux-mediatek, Greg Kroah-Hartman,
	Thierry Reding

hcc_params is set in xhci_gen_setup() called from usb_add_hcd(),
so checks the Maximum Primary Stream Array Size in the hcc_params
register after adding primary hcd.

Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
---
 drivers/usb/host/xhci-mtk.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/usb/host/xhci-mtk.c b/drivers/usb/host/xhci-mtk.c
index 9066ec9..6ac73a6 100644
--- a/drivers/usb/host/xhci-mtk.c
+++ b/drivers/usb/host/xhci-mtk.c
@@ -678,13 +678,13 @@ static int xhci_mtk_probe(struct platform_device *pdev)
 		goto power_off_phys;
 	}
 
-	if (HCC_MAX_PSA(xhci->hcc_params) >= 4)
-		xhci->shared_hcd->can_do_streams = 1;
-
 	ret = usb_add_hcd(hcd, irq, IRQF_SHARED);
 	if (ret)
 		goto put_usb3_hcd;
 
+	if (HCC_MAX_PSA(xhci->hcc_params) >= 4)
+		xhci->shared_hcd->can_do_streams = 1;
+
 	ret = usb_add_hcd(xhci->shared_hcd, irq, IRQF_SHARED);
 	if (ret)
 		goto dealloc_usb2_hcd;
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2017-03-08 11:08 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-07  3:32 [PATCH 1/2] usb: xhci-mtk: check hcc_params after adding primary hcd Chunfeng Yun
2017-03-07  3:32 ` Chunfeng Yun
2017-03-07  3:32 ` Chunfeng Yun
2017-03-07  3:32 ` [PATCH 2/2] usb: xhci: remove dummy extra_priv_size for size of xhci_hcd struct Chunfeng Yun
2017-03-07  3:32   ` Chunfeng Yun
2017-03-07  3:32   ` Chunfeng Yun
2017-03-07 11:02   ` Thierry Reding
2017-03-07 11:02     ` Thierry Reding
2017-03-07 11:02     ` Thierry Reding
2017-03-07 15:12     ` Mathias Nyman
2017-03-07 15:12       ` Mathias Nyman
2017-03-07 15:12       ` Mathias Nyman
2017-03-07 15:10 ` [PATCH 1/2] usb: xhci-mtk: check hcc_params after adding primary hcd Mathias Nyman
2017-03-07 15:10   ` Mathias Nyman
2017-03-07 15:10   ` Mathias Nyman
     [not found]   ` <58BECD83.9000205-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
2017-03-08  0:51     ` Chunfeng Yun
2017-03-08  0:51       ` Chunfeng Yun
2017-03-08  0:51       ` Chunfeng Yun
2017-03-08 11:08       ` Mathias Nyman
2017-03-08 11:08         ` Mathias Nyman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.