projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
60a28c6
)
usb: gadget: fusb300_udc: add ep capabilities support
author
Robert Baldyga
<r.baldyga@samsung.com>
Fri, 31 Jul 2015 14:00:28 +0000
(16:00 +0200)
committer
Felipe Balbi
<balbi@ti.com>
Tue, 4 Aug 2015 17:26:44 +0000
(12:26 -0500)
Convert endpoint configuration to new capabilities model.
Signed-off-by: Robert Baldyga <r.baldyga@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/udc/fusb300_udc.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/usb/gadget/udc/fusb300_udc.c
b/drivers/usb/gadget/udc/fusb300_udc.c
index 3970f453de4903fb55c21831e4cb511b2a2afc11..948845c90e47d3cf3333511f74673b2d7cd62daf 100644
(file)
--- a/
drivers/usb/gadget/udc/fusb300_udc.c
+++ b/
drivers/usb/gadget/udc/fusb300_udc.c
@@
-1450,6
+1450,17
@@
static int fusb300_probe(struct platform_device *pdev)
ep->ep.name = fusb300_ep_name[i];
ep->ep.ops = &fusb300_ep_ops;
usb_ep_set_maxpacket_limit(&ep->ep, HS_BULK_MAX_PACKET_SIZE);
+
+ if (i == 0) {
+ ep->ep.caps.type_control = true;
+ } else {
+ ep->ep.caps.type_iso = true;
+ ep->ep.caps.type_bulk = true;
+ ep->ep.caps.type_int = true;
+ }
+
+ ep->ep.caps.dir_in = true;
+ ep->ep.caps.dir_out = true;
}
usb_ep_set_maxpacket_limit(&fusb300->ep[0]->ep, HS_CTL_MAX_PACKET_SIZE);
fusb300->ep[0]->epnum = 0;