Skip to content

Commit 3db5337

Browse files
fancergregkh
authored andcommitted
usb: dwc3: qcom: Detect DWC3 DT-nodes using compatible string
In accordance with the USB HCD/DRD schema all the USB controllers are supposed to have DT-nodes named with prefix "^usb(@.*)?". Since the existing DT-nodes will be renamed in a subsequent patch let's fix the DWC3 Qcom-specific code to detect the DWC3 sub-node just by checking its compatible string to match the "snps,dwc3". The semantic of the code won't change seeing all the DWC USB3 nodes are supposed to have the compatible property with any of those strings set. Signed-off-by: Serge Semin <[email protected]> Reviewed-by: Bjorn Andersson <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent dc1e7e9 commit 3db5337

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/usb/dwc3/dwc3-qcom.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,7 @@ static int dwc3_qcom_of_register_core(struct platform_device *pdev)
647647
struct device *dev = &pdev->dev;
648648
int ret;
649649

650-
dwc3_np = of_get_child_by_name(np, "dwc3");
650+
dwc3_np = of_get_compatible_child(np, "snps,dwc3");
651651
if (!dwc3_np) {
652652
dev_err(dev, "failed to find dwc3 core child\n");
653653
return -ENODEV;

0 commit comments

Comments
 (0)