usb: host: dwc3-sti-glue: Fix ofnode_valid() parameter
PATCH RESEND 1/1 usb: host: dwc3-sti-glue: Fix ofnode_valid() parameter
node varaible is used as iterator into ofnode_for_each_subnode() loop, when exiting of it, node is no more a valid ofnode. Use dwc3_node instead as parameter of ofnode_valid()
---
drivers/usb/host/dwc3-sti-glue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/usb/host/dwc3-sti-glue.c +1 -1
@@ -159,7 +159,7 @@ static int sti_dwc3_glue_bind(struct udevice *dev) dwc3_node = node; } -if (!ofnode_valid (node)) { +if (!ofnode_valid (dwc3_node)) {pr_err ("Can't find dwc3 subnode for %s\n" , dev->name);return -ENODEV ; }
Signature · 1 line
2.17.1
PATCH RESEND 1/1 usb: host: dwc3-sti-glue: Fix ofnode_valid() parameter
Quoted 5 lines · Patrice Chotard
node varaible is used as iterator into
ofnode_for_each_subnode()loop, when exiting of it, node is no more a valid ofnode. Usedwc3_nodeinstead as parameter ofofnode_valid()Fixes ac28e59a574d ("usb: Migrate to support live DT for some driver")
Looks OK to me, feel free to pick it via ST tree.
PATCH RESEND 1/1 usb: host: dwc3-sti-glue: Fix ofnode_valid() parameter
Quoted 7 lines · Marek Vasut
Quoted 5 lines · Patrice Chotard
node varaible is used as iterator into
ofnode_for_each_subnode()loop, when exiting of it, node is no more a valid ofnode. Usedwc3_nodeinstead as parameter ofofnode_valid()Fixes ac28e59a574d ("usb: Migrate to support live DT for some driver")Looks OK to me, feel free to pick it via ST tree.
Ok thanks
Patrice
PATCH RESEND 1/1 usb: host: dwc3-sti-glue: Fix ofnode_valid() parameter
Quoted 8 lines · Patrice CHOTARD
Quoted 7 lines · Marek Vasut
Quoted 5 lines · Patrice Chotard
node varaible is used as iterator into
ofnode_for_each_subnode()loop, when exiting of it, node is no more a valid ofnode. Usedwc3_nodeinstead as parameter ofofnode_valid()Fixes ac28e59a574d ("usb: Migrate to support live DT for some driver")Looks OK to me, feel free to pick it via ST tree.
Applied on u-boot-stm/master
Thanks
Quoted 7 lines
Ok thanks
Patrice
_______________________________________________
Uboot-stm32 mailing list
Uboot-stm32 at st-md-mailman.stormreply.com
https://st-md-mailman.stormreply.com/mailman/listinfo/uboot-stm32