Merge "usb: dwc3: gadget: update the return value of pullup function"

This commit is contained in:
qctecmdr 2020-03-15 03:11:04 -07:00 • committed by Gerrit - the friendly Code Review server
commit 058b861752

View file

@ -2160,7 +2160,7 @@ static int dwc3_gadget_pullup(struct usb_gadget *g, int is_on)
spin_unlock_irqrestore(&dwc->lock, flags);
if (!is_on && ret == -ETIMEDOUT) {
dev_err(dwc->dev, "%s: Core soft reset...\n", __func__);
dwc3_device_core_soft_reset(dwc);
ret = dwc3_device_core_soft_reset(dwc);
}
enable_irq(dwc->irq);