diff options
author | Robert Baldyga <r.baldyga@samsung.com> | 2015-07-31 16:00:28 +0200 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2015-08-04 19:26:44 +0200 |
commit | 455d11c93582c4167f55af0969b83821450be120 (patch) | |
tree | 6924873a2f207d26c816b7d396871ceff0a62fe8 /drivers/usb/gadget/udc | |
parent | usb: gadget: fsl_udc_core: add ep capabilities support (diff) | |
download | linux-455d11c93582c4167f55af0969b83821450be120.tar.xz linux-455d11c93582c4167f55af0969b83821450be120.zip |
usb: gadget: fusb300_udc: 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>
Diffstat (limited to 'drivers/usb/gadget/udc')
-rw-r--r-- | drivers/usb/gadget/udc/fusb300_udc.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/usb/gadget/udc/fusb300_udc.c b/drivers/usb/gadget/udc/fusb300_udc.c index 3970f453de49..948845c90e47 100644 --- 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; |