]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: mach-k3: am6_init: Fix the path and value's length in the fixup performed for...
authorAswath Govindraju <a-govindraju@ti.com>
Wed, 18 May 2022 11:19:13 +0000 (16:49 +0530)
committerTom Rini <trini@konsulko.com>
Fri, 10 Jun 2022 17:37:32 +0000 (13:37 -0400)
The node name of the bus in the device tree has changed. Also, the length
argument to be passed should be the length of new value. Therefore, fix the
path to usb device tree node as well as the length argument passed.

Signed-off-by: Aswath Govindraju <a-govindraju@ti.com>
arch/arm/mach-k3/am6_init.c

index 86c1a349f1fc6d49d78a641a21f43a08bc44ae53..7992918adcdcb28e017fdf051ecbc4abc9df8c77 100644 (file)
@@ -127,8 +127,8 @@ static int fixup_usb_boot(void)
                 * before the dwc3 bind takes place
                 */
                ret = fdt_find_and_setprop((void *)gd->fdt_blob,
-                               "/interconnect@100000/dwc3@4000000/usb@10000",
-                               "dr_mode", "host", 11, 0);
+                               "/bus@100000/dwc3@4000000/usb@10000",
+                               "dr_mode", "host", 5, 0);
                if (ret)
                        printf("%s: fdt_find_and_setprop() failed:%d\n", __func__,
                               ret);