projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c7c3c9a
)
gadget: f_thor: properly enable 3rd endpoint defined by this protocol
author
Marek Szyprowski
<m.szyprowski@samsung.com>
Thu, 14 Apr 2016 13:02:36 +0000
(15:02 +0200)
committer
Jaehoon Chung
<jh80.chung@samsung.com>
Thu, 10 Oct 2019 04:38:36 +0000
(13:38 +0900)
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
drivers/usb/gadget/f_thor.c
patch
|
blob
|
history
diff --git
a/drivers/usb/gadget/f_thor.c
b/drivers/usb/gadget/f_thor.c
index
28f4726
..
93a01ac
100644
(file)
--- a/
drivers/usb/gadget/f_thor.c
+++ b/
drivers/usb/gadget/f_thor.c
@@
-1011,6
+1011,13
@@
static int thor_eps_setup(struct usb_function *f)
dev->out_req = req;
/* ACM control EP */
ep = dev->int_ep;
+ d = ep_desc(gadget, &hs_int_desc, &fs_int_desc);
+ debug("(d)bEndpointAddress: 0x%x\n", d->bEndpointAddress);
+
+ result = usb_ep_enable(ep, d);
+ if (result)
+ goto exit;
+
ep->driver_data = cdev; /* claim */
return 0;