projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a3b8e7
)
usb: gadget: fotg210-udc: add ep capabilities support
author
Robert Baldyga
<r.baldyga@samsung.com>
Fri, 31 Jul 2015 14:00:25 +0000
(16:00 +0200)
committer
Felipe Balbi
<balbi@ti.com>
Tue, 4 Aug 2015 17:26:41 +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/fotg210-udc.c
patch
|
blob
|
history
diff --git
a/drivers/usb/gadget/udc/fotg210-udc.c
b/drivers/usb/gadget/udc/fotg210-udc.c
index a99ed6d80e9ab6314ebeffb5c3f1dd174ed947a7..6ba122cc7490b42acd0d9b004283e4d26f48c167 100644
(file)
--- a/
drivers/usb/gadget/udc/fotg210-udc.c
+++ b/
drivers/usb/gadget/udc/fotg210-udc.c
@@
-1143,6
+1143,17
@@
static int fotg210_udc_probe(struct platform_device *pdev)
ep->ep.name = fotg210_ep_name[i];
ep->ep.ops = &fotg210_ep_ops;
usb_ep_set_maxpacket_limit(&ep->ep, (unsigned short) ~0);
+
+ 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(&fotg210->ep[0]->ep, 0x40);
fotg210->gadget.ep0 = &fotg210->ep[0]->ep;