mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 13:55:32 +00:00
usb: gadget: fsl_udc_core: add ep capabilities support
Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga <r.baldyga@samsung.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
This commit is contained in:
parent
e8fc42f6a1
commit
60a28c6371
1 changed files with 13 additions and 0 deletions
|
@ -2313,6 +2313,19 @@ static int struct_ep_setup(struct fsl_udc *udc, unsigned char index,
|
|||
ep->ep.ops = &fsl_ep_ops;
|
||||
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 other eps, maxP is set by epautoconfig() called by gadget layer
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue