projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bba40e6
)
usb: gadget: remove driver from pending list on probe error
author
Marek Szyprowski
<m.szyprowski@samsung.com>
Mon, 8 Feb 2016 12:42:14 +0000
(13:42 +0100)
committer
Felipe Balbi
<balbi@kernel.org>
Tue, 23 Feb 2016 06:51:37 +0000
(08:51 +0200)
Retry gadget probe only if the probe result is -EPROBE_DEFER, not on
every probe error.
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
drivers/usb/gadget/udc/udc-core.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/usb/gadget/udc/udc-core.c
b/drivers/usb/gadget/udc/udc-core.c
index fd73a3ea07c20e4cac1100be1883dce5ea81c033..b86a6f03592ec9e1d42f5bdc813b83c1297b6e52 100644
(file)
--- a/
drivers/usb/gadget/udc/udc-core.c
+++ b/
drivers/usb/gadget/udc/udc-core.c
@@
-413,9
+413,10
@@
int usb_add_gadget_udc_release(struct device *parent, struct usb_gadget *gadget,
if (!driver->udc_name || strcmp(driver->udc_name,
dev_name(&udc->dev)) == 0) {
ret = udc_bind_to_driver(udc, driver);
+ if (ret != -EPROBE_DEFER)
+ list_del(&driver->pending);
if (ret)
goto err4;
- list_del(&driver->pending);
break;
}
}