|
@@ -2313,6 +2313,19 @@ static int struct_ep_setup(struct fsl_udc *udc, unsigned char index,
|
|
|
ep->ep.ops = &fsl_ep_ops;
|
|
ep->ep.ops = &fsl_ep_ops;
|
|
|
ep->stopped = 0;
|
|
ep->stopped = 0;
|
|
|
|
|
|
|
|
|
|
+ if (index == 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;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ if (index & 1)
|
|
|
|
|
+ ep->ep.caps.dir_in = true;
|
|
|
|
|
+ else
|
|
|
|
|
+ ep->ep.caps.dir_out = true;
|
|
|
|
|
+
|
|
|
/* for ep0: maxP defined in desc
|
|
/* for ep0: maxP defined in desc
|
|
|
* for other eps, maxP is set by epautoconfig() called by gadget layer
|
|
* for other eps, maxP is set by epautoconfig() called by gadget layer
|
|
|
*/
|
|
*/
|