usb: gadget: dwc2_udc_otg: return zero when reset property is not present
A message that is not in the archive (sent off-list or not yet received): CGME20201021122830epcas1p4229f05202c1b468d52914d033f8ade00@epcas1p4.samsung.com
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.
Signed-off-by Jaehoon Chung <[email protected]>
--- drivers/usb/gadget/dwc2_udc_otg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/usb/gadget/dwc2_udc_otg.c +1 -1
@@ -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
Marek Vasut
AppliedPATCH 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,
-ENOENTis returned. But it's not really error.
Applied, thanks.