projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
99f7003
)
USB: omap_udc: fix omap_udc_start() on 15xx machines
author
Aaro Koskinen
<aaro.koskinen@iki.fi>
Sat, 24 Nov 2018 22:17:06 +0000
(
00:17
+0200)
committer
Felipe Balbi
<felipe.balbi@linux.intel.com>
Mon, 26 Nov 2018 10:37:56 +0000
(12:37 +0200)
On OMAP 15xx machines there are no transceivers, and omap_udc_start()
always fails as it forgot to adjust the default return value.
Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/gadget/udc/omap_udc.c
patch
|
blob
|
history
diff --git
a/drivers/usb/gadget/udc/omap_udc.c
b/drivers/usb/gadget/udc/omap_udc.c
index 240ccba44592223f6663a9450d67b7b84af6cf69..33250e569af827ef7605ed62a841da3d7cb14034 100644
(file)
--- a/
drivers/usb/gadget/udc/omap_udc.c
+++ b/
drivers/usb/gadget/udc/omap_udc.c
@@
-2041,7
+2041,7
@@
static inline int machine_without_vbus_sense(void)
static int omap_udc_start(struct usb_gadget *g,
struct usb_gadget_driver *driver)
{
- int status
= -ENODEV
;
+ int status;
struct omap_ep *ep;
unsigned long flags;
@@
-2079,6
+2079,7
@@
static int omap_udc_start(struct usb_gadget *g,
goto done;
}
} else {
+ status = 0;
if (can_pullup(udc))
pullup_enable(udc);
else