Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754197AbbGaOET (ORCPT ); Fri, 31 Jul 2015 10:04:19 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:57581 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754160AbbGaOEP (ORCPT ); Fri, 31 Jul 2015 10:04:15 -0400 X-AuditID: cbfee61b-f79706d000001b96-e6-55bb80552744 From: Robert Baldyga To: balbi@ti.com Cc: gregkh@linuxfoundation.org, Peter.Chen@freescale.com, johnyoun@synopsys.com, dahlmann.thomas@arcor.de, nicolas.ferre@atmel.com, cernekee@gmail.com, leoli@freescale.com, daniel@zonque.org, haojian.zhuang@gmail.com, robert.jarzmik@free.fr, michal.simek@xilinx.com, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, linux-omap@vger.kernel.org, linux-geode@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, andrzej.p@samsung.com, m.szyprowski@samsung.com, stern@rowland.harvard.edu, petr.cvek@tul.cz, Robert Baldyga Subject: [PATCH v5 23/46] usb: gadget: net2272: add ep capabilities support Date: Fri, 31 Jul 2015 16:00:35 +0200 Message-id: <1438351258-31578-24-git-send-email-r.baldyga@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1438351258-31578-1-git-send-email-r.baldyga@samsung.com> References: <1438351258-31578-1-git-send-email-r.baldyga@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAAzWRXUhTcRiH+29n5xyXg9OUOqlIrPIialoI/QMxCaoDEUS4FC/Kkx7U3Oba /O7C4Qh1ZbPEspm50vJ7o6WZn6NNJ7qWQ02kmBqKtKV1MdI5v3JKdw/v84Pn4sXZfC0SgmdI sxm5lBYLUC5i25onTomUvaKoGdc5qHWVIPDTbBHs1zkBLJu1sGHxphuBfZ99GFTVG1Do0J+F vbZxAH1zfGicn+JAzRcbAid6XqCwpkGDwNdv77Ph+uoWB7YPOjH425UIVyZUGLTWbLJgXWkV B85ZujGoXQqCFesONI6kKhfesSidrxOhZgYsCKXRezjUlkXDorq1Towy1bZh1PuGImqs+hWg apxeQD3qaAFUh8kDqOHpLhb1vLkcpTzGcKrfs45cO5DEjUllxBm5jDwyNpmbbtNjsjE0v9yt QpWgk6MGOE4S0WTr0xA1CNjBg6RjxoD6mU+8AeSQ64IacHd4DZD9viHEL1DiJNmxWgH8HEwQ pOHnOOYfsQkvQtpfPsD8Ioi4Qpb26XYZIY6T39s7MX+MR1wi19zyvVg4OWKt5Pg5YOf812DH 9sIXyUHrKLsC8HRgXwsgGVmKTHE7TXJGyuQJFbREkSNNE6ZkSYxg92OLoR+BpeeyGRA4EATy iPoeEZ9D5yoKJGZA4mxBMG82olfE56XSBYWMPOuWPEfMKMwgFEcEh3iR0UYRn0ijs5lMhpEx 8v+WhQeEKMGxzanyjdak4sncq1yJaMlgPox773wtG3UHh3mPapqWG62NP5QjA9bq/O2qu7Y4 38MnldeFNxIeny9UL9xbCTI9E6p+Nde2aROHv9ERyQUb4klHYCZel7QYe8SqmR6IzzN9WO5K 3d8kiLJPbajsGX9i6rb1y/ElYd0JYl/hTZEAUaTTp0+w5Qr6H3aDscytAgAA Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1060 Lines: 37 Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/udc/net2272.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/drivers/usb/gadget/udc/net2272.c b/drivers/usb/gadget/udc/net2272.c index c2ed5da..18f5ebd 100644 --- a/drivers/usb/gadget/udc/net2272.c +++ b/drivers/usb/gadget/udc/net2272.c @@ -1404,6 +1404,17 @@ net2272_usb_reinit(struct net2272 *dev) else ep->fifo_size = 64; net2272_ep_reset(ep); + + 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(&dev->ep[0].ep, 64); -- 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/