Skip to contentSkip to conversation

usb: host: dwc3-sti-glue: Fix ofnode_valid() parameter

PATCH RESEND Superseded Patrice Chotard 2 participants 4 messages Jul 31, 2020 – Aug 13, 2020 USB

lore
Share & tools
lore
#0 lore raw

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()

Fixes ac28e59a574d ("usb: Migrate to support live DT for some driver")
Cc Kever Yang <[email protected]>

---

 drivers/usb/host/dwc3-sti-glue.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/usb/host/dwc3-sti-glue.c +1 -1
index a72ab20168..3e6c1429d6 100644
@@ -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
#1 lore raw

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. Use dwc3_node instead as parameter of ofnode_valid()

Fixes ac28e59a574d ("usb: Migrate to support live DT for some driver")

Looks OK to me, feel free to pick it via ST tree.

#2 lore raw

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. Use dwc3_node instead as parameter of ofnode_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

#3 lore raw

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. Use dwc3_node instead as parameter of ofnode_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