summaryrefslogtreecommitdiff
path: root/drivers/usb
diff options
context:
space:
mode:
authorLukasz Majewski <l.majewski@samsung.com>2015-03-03 17:32:07 +0100
committerMarek Vasut <marex@denx.de>2015-04-14 05:48:12 +0200
commit6d691732073f79138648fc6e8ad1569f7a2898a6 (patch)
tree72412e33c21a5c5df7b865bad1bd3e2ba7b1936b /drivers/usb
parentd281730f9c5ca15c294004fd1971752016fe5a34 (diff)
downloadu-boot-imx-6d691732073f79138648fc6e8ad1569f7a2898a6.zip
u-boot-imx-6d691732073f79138648fc6e8ad1569f7a2898a6.tar.gz
u-boot-imx-6d691732073f79138648fc6e8ad1569f7a2898a6.tar.bz2
usb: composite: Add .reset callback to usb_gadget_driver structure
DWC3 UDC driver requires presence of .reset callback in a composite driver. This setting is similar to the one nowadays present in linux kernel. Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/gadget/composite.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/gadget/composite.c b/drivers/usb/gadget/composite.c
index 729a0fa..d96296c 100644
--- a/drivers/usb/gadget/composite.c
+++ b/drivers/usb/gadget/composite.c
@@ -1052,6 +1052,7 @@ static struct usb_gadget_driver composite_driver = {
.unbind = composite_unbind,
.setup = composite_setup,
+ .reset = composite_disconnect,
.disconnect = composite_disconnect,
.suspend = composite_suspend,