Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1183563
| From | Robert Baldyga <r.baldyga@samsung.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH v2 05/48] usb: chipidea: udc: add ep capabilities support |
| Date | 2015-07-14 12:00 +0200 |
| Message-ID | <pM5aj-zl-37@gated-at.bofh.it> (permalink) |
| References | <pM50B-w0-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Convert endpoint configuration to new capabilities model.
Signed-off-by: Robert Baldyga <r.baldyga@samsung.com>
---
drivers/usb/chipidea/udc.c | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/drivers/usb/chipidea/udc.c b/drivers/usb/chipidea/udc.c
index 764f668..eff7cfb 100644
--- a/drivers/usb/chipidea/udc.c
+++ b/drivers/usb/chipidea/udc.c
@@ -1624,6 +1624,20 @@ static int init_eps(struct ci_hdrc *ci)
hwep->ep.name = hwep->name;
hwep->ep.ops = &usb_ep_ops;
+
+ if (i == 0) {
+ hwep->ep.caps.type_control = true;
+ } else {
+ hwep->ep.caps.type_iso = true;
+ hwep->ep.caps.type_bulk = true;
+ hwep->ep.caps.type_int = true;
+ }
+
+ if (j == TX)
+ hwep->ep.caps.dir_in = true;
+ else
+ hwep->ep.caps.dir_out = true;
+
/*
* for ep0: maxP defined in desc, for other
* eps, maxP is set by epautoconfig() called
--
1.9.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v2 00/48] usb: gadget: rework ep matching and claiming mechanism Robert Baldyga <r.baldyga@samsung.com> - 2015-07-14 11:50 +0200 [PATCH v2 42/48] usb: gadget: epautoconf: use 'ep_match' gadget callback Robert Baldyga <r.baldyga@samsung.com> - 2015-07-14 11:50 +0200 [PATCH v2 19/48] usb: gadget: lpc32xx_udc: add ep capabilities support Robert Baldyga <r.baldyga@samsung.com> - 2015-07-14 12:00 +0200 [PATCH v2 02/48] usb: gadget: add endpoint capabilities flags Robert Baldyga <r.baldyga@samsung.com> - 2015-07-14 12:00 +0200 [PATCH v2 03/48] usb: gadget: add endpoint capabilities helper macros Robert Baldyga <r.baldyga@samsung.com> - 2015-07-14 12:00 +0200 [PATCH v2 33/48] usb: isp1760: udc: add ep capabilities support Robert Baldyga <r.baldyga@samsung.com> - 2015-07-14 12:00 +0200 [PATCH v2 21/48] usb: gadget: mv_u3d_core: add ep capabilities support Robert Baldyga <r.baldyga@samsung.com> - 2015-07-14 12:00 +0200 [PATCH v2 22/48] usb: gadget: mv_udc_core: add ep capabilities support Robert Baldyga <r.baldyga@samsung.com> - 2015-07-14 12:00 +0200 [PATCH v2 34/48] usb: musb: gadget: add ep capabilities support Robert Baldyga <r.baldyga@samsung.com> - 2015-07-14 12:00 +0200 [PATCH v2 16/48] usb: gadget: fusb300_udc: add ep capabilities support Robert Baldyga <r.baldyga@samsung.com> - 2015-07-14 12:00 +0200 [PATCH v2 13/48] usb: gadget: fotg210-udc: add ep capabilities support Robert Baldyga <r.baldyga@samsung.com> - 2015-07-14 12:00 +0200 [PATCH v2 07/48] usb: dwc3: gadget: add ep capabilities support Robert Baldyga <r.baldyga@samsung.com> - 2015-07-14 12:00 +0200 [PATCH v2 17/48] usb: gadget: goku_udc: add ep capabilities support Robert Baldyga <r.baldyga@samsung.com> - 2015-07-14 12:00 +0200 [PATCH v2 05/48] usb: chipidea: udc: add ep capabilities support Robert Baldyga <r.baldyga@samsung.com> - 2015-07-14 12:00 +0200 [PATCH v2 27/48] usb: gadget: pxa25x_udc: add ep capabilities support Robert Baldyga <r.baldyga@samsung.com> - 2015-07-14 12:00 +0200
csiph-web