Skip to content

Commit e19852d

Browse files
Xu Yanggregkh
authored andcommitted
usb: host: xhci-plat: set skip_phy_initialization if software node has XHCI_SKIP_PHY_INIT property
The source of quirk XHCI_SKIP_PHY_INIT comes from xhci_plat_priv.quirks or software node property. This will set skip_phy_initialization if software node also has XHCI_SKIP_PHY_INIT property. Fixes: a6cd2b3 ("usb: host: xhci-plat: Parse xhci-missing_cas_quirk and apply quirk") Cc: stable <[email protected]> Signed-off-by: Xu Yang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 625e70c commit e19852d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/usb/host/xhci-plat.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,8 @@ int xhci_plat_probe(struct platform_device *pdev, struct device *sysdev, const s
290290

291291
hcd->tpl_support = of_usb_host_tpl_support(sysdev->of_node);
292292

293-
if (priv && (priv->quirks & XHCI_SKIP_PHY_INIT))
293+
if ((priv && (priv->quirks & XHCI_SKIP_PHY_INIT)) ||
294+
(xhci->quirks & XHCI_SKIP_PHY_INIT))
294295
hcd->skip_phy_initialization = 1;
295296

296297
if (priv && (priv->quirks & XHCI_SG_TRB_CACHE_SIZE_QUIRK))

0 commit comments

Comments
 (0)