Skip to content

Commit a6cd2b3

Browse files
nxpfrankligregkh
authored andcommitted
usb: host: xhci-plat: Parse xhci-missing_cas_quirk and apply quirk
Parse software managed property 'xhci-skip-phy-init-quirk' and 'xhci-skip-phy-init-quirk' to apply related quirk. It allows usb glue layer driver apply these quirk. Signed-off-by: Frank Li <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 6782311 commit a6cd2b3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

drivers/usb/host/xhci-plat.c

+6
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,12 @@ int xhci_plat_probe(struct platform_device *pdev, struct device *sysdev, const s
259259
if (device_property_read_bool(tmpdev, "write-64-hi-lo-quirk"))
260260
xhci->quirks |= XHCI_WRITE_64_HI_LO;
261261

262+
if (device_property_read_bool(tmpdev, "xhci-missing-cas-quirk"))
263+
xhci->quirks |= XHCI_MISSING_CAS;
264+
265+
if (device_property_read_bool(tmpdev, "xhci-skip-phy-init-quirk"))
266+
xhci->quirks |= XHCI_SKIP_PHY_INIT;
267+
262268
device_property_read_u32(tmpdev, "imod-interval-ns",
263269
&xhci->imod_interval);
264270
}

0 commit comments

Comments
 (0)