diff options
author | Peter Chen <peter.chen@freescale.com> | 2014-09-09 08:56:48 +0800 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2014-09-09 09:58:09 -0500 |
commit | ef979a26e3d521d51dbd9950e46a69e303073171 (patch) | |
tree | db43d334740f1aa8efc162747f1bdc928690934b /drivers/usb/gadget/composite.c | |
parent | 85b06f5e53d17c15844ef3cd45d0c7107f0ae45c (diff) | |
download | op-kernel-dev-ef979a26e3d521d51dbd9950e46a69e303073171.zip op-kernel-dev-ef979a26e3d521d51dbd9950e46a69e303073171.tar.gz |
usb: gadget: add reset API at usb_gadget_driver
Adding reset API for UDC bus reset handler is useful for below
two issues.
Current disconnect API at usb_gadget_driver is also invoked at
udc's bus reset handler, but the document says it is invoked when
the host is disconnected.
Besides, we may expect the gadget_driver to do different things
for host sends bus reset and host disconnects gadget, eg, we may not
want to flush dirty page for mass storage at bus reset, and want to
do it at disconnection.
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Peter Chen <peter.chen@freescale.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/gadget/composite.c')
0 files changed, 0 insertions, 0 deletions