All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] usb: dwc3: Fix support for usb3-phy PHY configuration
@ 2022-05-19 21:03 Marek Vasut
  2022-05-20  6:28 ` Michal Simek
  0 siblings, 1 reply; 2+ messages in thread
From: Marek Vasut @ 2022-05-19 21:03 UTC (permalink / raw)
  To: u-boot; +Cc: Marek Vasut, Michal Simek

The dev_read_stringlist_search() in generic_phy_get_by_name()
returns -ENODATA in case of missing "phy-names", which is the
case on everything except ZynqMP. Handle this -ENODATA instead
of failing outright, which fixes the glue on everything else.

Fixes: 142d50fbce7 ("usb: dwc3: Add support for usb3-phy PHY configuration")
Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Michal Simek <michal.simek@xilinx.com>
---
 drivers/usb/dwc3/dwc3-generic.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/usb/dwc3/dwc3-generic.c b/drivers/usb/dwc3/dwc3-generic.c
index 6e1a1d066b4..9608c5c599a 100644
--- a/drivers/usb/dwc3/dwc3-generic.c
+++ b/drivers/usb/dwc3/dwc3-generic.c
@@ -468,7 +468,7 @@ static int dwc3_glue_probe(struct udevice *dev)
 		ret = generic_phy_init(&phy);
 		if (ret)
 			return ret;
-	} else if (ret != -ENOENT) {
+	} else if (ret != -ENOENT && ret != -ENODATA) {
 		debug("could not get phy (err %d)\n", ret);
 		return ret;
 	}
-- 
2.35.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-05-20  6:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-19 21:03 [PATCH] usb: dwc3: Fix support for usb3-phy PHY configuration Marek Vasut
2022-05-20  6:28 ` Michal Simek

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.