arm: mach-k3: am6_init: Fix the path and value's length in the fixup performed for usb boot
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>
This commit is contained in:
		
							parent
							
								
									750d8470cb
								
							
						
					
					
						commit
						36dafd8045
					
				| 
						 | 
					@ -127,8 +127,8 @@ static int fixup_usb_boot(void)
 | 
				
			||||||
		 * before the dwc3 bind takes place
 | 
							 * before the dwc3 bind takes place
 | 
				
			||||||
		 */
 | 
							 */
 | 
				
			||||||
		ret = fdt_find_and_setprop((void *)gd->fdt_blob,
 | 
							ret = fdt_find_and_setprop((void *)gd->fdt_blob,
 | 
				
			||||||
				"/interconnect@100000/dwc3@4000000/usb@10000",
 | 
									"/bus@100000/dwc3@4000000/usb@10000",
 | 
				
			||||||
				"dr_mode", "host", 11, 0);
 | 
									"dr_mode", "host", 5, 0);
 | 
				
			||||||
		if (ret)
 | 
							if (ret)
 | 
				
			||||||
			printf("%s: fdt_find_and_setprop() failed:%d\n", __func__,
 | 
								printf("%s: fdt_find_and_setprop() failed:%d\n", __func__,
 | 
				
			||||||
			       ret);
 | 
								       ret);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue