mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 04:10:18 +09:00
usb: host: xhci: plat: check hcc_params after add hcd
am: 61e9e9bcfd
Change-Id: I34fa79dc6db2afab25940511c4993bf616a194bc
This commit is contained in:
@@ -162,9 +162,6 @@ static int xhci_plat_probe(struct platform_device *pdev)
|
||||
(pdata && pdata->usb3_lpm_capable))
|
||||
xhci->quirks |= XHCI_LPM_SUPPORT;
|
||||
|
||||
if (HCC_MAX_PSA(xhci->hcc_params) >= 4)
|
||||
xhci->shared_hcd->can_do_streams = 1;
|
||||
|
||||
hcd->usb_phy = devm_usb_get_phy_by_phandle(&pdev->dev, "usb-phy", 0);
|
||||
if (IS_ERR(hcd->usb_phy)) {
|
||||
ret = PTR_ERR(hcd->usb_phy);
|
||||
@@ -181,6 +178,9 @@ static int xhci_plat_probe(struct platform_device *pdev)
|
||||
if (ret)
|
||||
goto disable_usb_phy;
|
||||
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user