OSDN Git Service
(root)
/
sagit-ice-cold
/
kernel_xiaomi_msm8998.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7918d8c
)
usb: gadget: amd5536udc: use udc-core's reset notifier
author
Peter Chen
<peter.chen@freescale.com>
Thu, 6 Nov 2014 06:28:06 +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/amd5536udc.c
patch
|
blob
|
history
diff --git
a/drivers/usb/gadget/udc/amd5536udc.c
b/drivers/usb/gadget/udc/amd5536udc.c
index
606b900
..
de7e5e2
100644
(file)
--- a/
drivers/usb/gadget/udc/amd5536udc.c
+++ b/
drivers/usb/gadget/udc/amd5536udc.c
@@
-2871,7
+2871,7
@@
__acquires(dev->lock)
dev->driver->resume(&dev->gadget);
dev->sys_suspended = 0;
}
-
dev->driver->disconnect(&dev->gadget
);
+
usb_gadget_udc_reset(&dev->gadget, dev->driver
);
spin_lock(&dev->lock);
/* disable ep0 to empty req queue */