projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fba45ce
)
usb: gadget: pch_udc: use udc-core's reset notifier
author
Peter Chen
<peter.chen@freescale.com>
Thu, 6 Nov 2014 06:28:05 +0000
(14:28 +0800)
committer
Felipe Balbi
<balbi@ti.com>
Mon, 10 Nov 2014 23:19:37 +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/pch_udc.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/usb/gadget/udc/pch_udc.c
b/drivers/usb/gadget/udc/pch_udc.c
index 6534f36866dccde6953fb57760a1cdc32525d1e2..1c7379ac237950c44db5bbf445af3b4bf984cc78 100644
(file)
--- a/
drivers/usb/gadget/udc/pch_udc.c
+++ b/
drivers/usb/gadget/udc/pch_udc.c
@@
-2592,9
+2592,9
@@
static void pch_udc_svc_ur_interrupt(struct pch_udc_dev *dev)
/* Complete request queue */
empty_req_queue(ep);
}
- if (dev->driver
&& dev->driver->disconnect
) {
+ if (dev->driver) {
spin_unlock(&dev->lock);
-
dev->driver->disconnect(&dev->gadget
);
+
usb_gadget_udc_reset(&dev->gadget, dev->driver
);
spin_lock(&dev->lock);
}
}