Skip to contentSkip to conversation

usb: gadget: dwc2_udc_otg: return zero when reset property is not present

PATCH New Jaehoon Chung 2 participants 2 messages Oct 21, 2020 1 message not in the archive USB

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): CGME20201021122830epcas1p4229f05202c1b468d52914d033f8ade00@epcas1p4.samsung.com

#1 lore raw

PATCH 1/1 usb: gadget: dwc2_udc_otg: return zero when reset property is not present

If reset DT property is not present, -ENOENT is returned. But it's not really error.

---
 drivers/usb/gadget/dwc2_udc_otg.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/usb/gadget/dwc2_udc_otg.c +1 -1
index eaa5dcb9b138..df0b30c4be66 100644
@@ -1045,7 +1045,7 @@ static int dwc2_udc_otg_reset_init(struct udevice *dev,
 	int ret;
 
 	ret = reset_get_bulk(dev, resets);
-	if (ret == -ENOTSUPP)
+	if (ret == -ENOTSUPP || ret == -ENOENT)
 		return 0;
 
 	if (ret)
Signature · 1 line
2.28.0
Applied
#2 lore raw

PATCH 1/1 usb: gadget: dwc2_udc_otg: return zero when reset property is not present

Quoted 2 lines · Jaehoon Chung

If reset DT property is not present, -ENOENT is returned. But it's not really error.

Applied, thanks.