Skip to content

Commit b969920

Browse files
Junlisuzhougregkh
authored andcommitted
usb: dwc3: imx8mp: detect dwc3 core node via compatible string
New schema of usb controller DT-node should be named with prefix "^usb(@.*)?", dt changed the node name, but missed counter part change in driver, fix it by switching to use compatible string as the dwc3 core compatible string keeps "snps,dwc3" in all dt. Fixes: d1689cd ("arm64: dts: imx8mp: Use the correct name for child node "snps, dwc3"") Acked-by: Felipe Balbi <balbi@kernel.org> Signed-off-by: Li Jun <jun.li@nxp.com> Link: https://lore.kernel.org/r/1619765836-20387-1-git-send-email-jun.li@nxp.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 18ffa98 commit b969920

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/usb/dwc3/dwc3-imx8mp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ static int dwc3_imx8mp_probe(struct platform_device *pdev)
165165
if (err < 0)
166166
goto disable_rpm;
167167

168-
dwc3_np = of_get_child_by_name(node, "dwc3");
168+
dwc3_np = of_get_compatible_child(node, "snps,dwc3");
169169
if (!dwc3_np) {
170170
dev_err(dev, "failed to find dwc3 core child\n");
171171
goto disable_rpm;

0 commit comments

Comments
 (0)