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:
107d13c
)
usb: gadget: r8a66597-udc: use udc-core's reset notifier
author
Peter Chen
<peter.chen@freescale.com>
Thu, 6 Nov 2014 06:28:07 +0000
(14:28 +0800)
committer
Felipe Balbi
<balbi@ti.com>
Mon, 10 Nov 2014 23:19:38 +0000
(17:19 -0600)
Replace usb_gadget_driver's disconnect with udc-core's reset notifier at
bus reset handler.
Signed-off-by: Peter Chen <peter.chen@freescale.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/udc/r8a66597-udc.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/usb/gadget/udc/r8a66597-udc.c
b/drivers/usb/gadget/udc/r8a66597-udc.c
index be31b57a8ba1a60e83ebc45bedd2a7d7926fdbea..06870da0b988dd41563f8d921228e722ff937dde 100644
(file)
--- a/
drivers/usb/gadget/udc/r8a66597-udc.c
+++ b/
drivers/usb/gadget/udc/r8a66597-udc.c
@@
-1345,7
+1345,7
@@
static void irq_device_state(struct r8a66597 *r8a66597)
if (dvsq == DS_DFLT) {
/* bus reset */
spin_unlock(&r8a66597->lock);
-
r8a66597->driver->disconnect(&r8a66597->gadget
);
+
usb_gadget_udc_reset(&r8a66597->gadget, r8a66597->driver
);
spin_lock(&r8a66597->lock);
r8a66597_update_usb_speed(r8a66597);
}