summaryrefslogtreecommitdiff
path: root/drivers/usb/gadget/udc/goku_udc.c
diff options
context:
space:
mode:
authorRobert Baldyga <r.baldyga@samsung.com>2015-07-31 17:00:29 +0300
committerFelipe Balbi <balbi@ti.com>2015-08-04 20:26:44 +0300
commitb0bf5fbfbd30ffbb9e45169f78412f0596e16412 (patch)
treea9397c971d35d65af28aa890a2c65eef04832f3c /drivers/usb/gadget/udc/goku_udc.c
parent455d11c93582c4167f55af0969b83821450be120 (diff)
downloadlinux-b0bf5fbfbd30ffbb9e45169f78412f0596e16412.tar.xz
usb: gadget: goku_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/goku_udc.c')
-rw-r--r--drivers/usb/gadget/udc/goku_udc.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/usb/gadget/udc/goku_udc.c b/drivers/usb/gadget/udc/goku_udc.c
index 9e8d842e8c08..46b8d14998cf 100644
--- a/drivers/usb/gadget/udc/goku_udc.c
+++ b/drivers/usb/gadget/udc/goku_udc.c
@@ -1257,6 +1257,14 @@ static void udc_reinit (struct goku_udc *dev)
INIT_LIST_HEAD (&ep->queue);
ep_reset(NULL, ep);
+
+ if (i == 0)
+ ep->ep.caps.type_control = true;
+ else
+ ep->ep.caps.type_bulk = true;
+
+ ep->ep.caps.dir_in = true;
+ ep->ep.caps.dir_out = true;
}
dev->ep[0].reg_mode = NULL;