All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] usb: dwc3: Handle case where setup_phy is not needed
@ 2019-04-01  6:10 Siva Durga Prasad Paladugu
  2019-04-01  7:32 ` Lukasz Majewski
  0 siblings, 1 reply; 8+ messages in thread
From: Siva Durga Prasad Paladugu @ 2019-04-01  6:10 UTC (permalink / raw)
  To: u-boot

If CONFIG_PHY is not enabled then the dwc3_setup_phy()
returns ENOTSUPP which can be still valid and intentional
so modify error check to handle this -ENOTSUPP.

Signed-off-by: Siva Durga Prasad Paladugu <siva.durga.paladugu@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 3e6c494..a261d8d 100644
--- a/drivers/usb/dwc3/dwc3-generic.c
+++ b/drivers/usb/dwc3/dwc3-generic.c
@@ -47,7 +47,7 @@ static int dwc3_generic_peripheral_probe(struct udevice *dev)
 	struct dwc3 *dwc3 = &priv->dwc3;
 
 	rc = dwc3_setup_phy(dev, &priv->phys, &priv->num_phys);
-	if (rc)
+	if (rc && rc != -ENOTSUPP)
 		return rc;
 
 	dwc3->regs = map_physmem(priv->base, DWC3_OTG_REGS_END, MAP_NOCACHE);
-- 
2.7.4

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

end of thread, other threads:[~2019-06-06 10:13 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-04-01  6:10 [U-Boot] [PATCH] usb: dwc3: Handle case where setup_phy is not needed Siva Durga Prasad Paladugu
2019-04-01  7:32 ` Lukasz Majewski
2019-04-01 10:23   ` Siva Durga Prasad Paladugu
2019-04-01 10:34     ` Lukasz Majewski
2019-04-01 10:38       ` Siva Durga Prasad Paladugu
2019-04-01 10:39         ` Michal Simek
2019-05-28 10:06           ` Siva Durga Prasad Paladugu
2019-06-06 10:13             ` Siva Durga Prasad Paladugu

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.