Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754071AbbGaOD0 (ORCPT ); Fri, 31 Jul 2015 10:03:26 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:39548 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752867AbbGaODX (ORCPT ); Fri, 31 Jul 2015 10:03:23 -0400 X-AuditID: cbfee61a-f79a06d000005c6f-99-55bb8029d9ea 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 17/46] usb: gadget: goku_udc: add ep capabilities support Date: Fri, 31 Jul 2015 16:00:29 +0200 Message-id: <1438351258-31578-18-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: H4sIAAAAAAAAA+NgFprHIsWRmVeSWpSXmKPExsVy+t9jAV3Nht2hBscemVnMetnOYnHwfr3F 3gV3GS067x9mtmj6+4rFYs+ZX+wWzYvXs1lcWGdusfv0JUaLXw+ELDY9vsZq0X/uNIvF5V1z 2CxmL+lnsVi0rJXZ4vf3f6wWa4/cZbd49zLC4tvlZnaLY7P/MlnM75jKavHg8E52i1lvhC0m /L7A5iDhMfnJRiaPBb+2snjc23eYxaN/3WdWj3+H+5k8ds66y+6xf+4ado/NS+o9zs9YyOgx ++4PRo++LasYPbbs/8zocfzGdiaPmSt72Tw+b5Lz2Pv5N0uAYBSXTUpqTmZZapG+XQJXxvzr S9kKPrJW/Fj9ga2B8TVLFyMnh4SAiUTnlk9QtpjEhXvr2boYuTiEBJYySqz98h/K+ckocXZa PxNIFZuAjsSW7xMYQWwRAQGJ9S8usYMUMQv8YJE4O6+bHSQhLOAjsXPDRzCbRUBV4uKLtcwg Nq+Am8Tz89+YINbJSZw8NpkVxOYEin9dfxasXkjAVeLIsVPMExh5FzAyrGKUSC1ILihOSs81 zEst1ytOzC0uzUvXS87P3cQIjrVnUjsYD+5yP8QowMGoxMMrsHhXqBBrYllxZe4hRgkOZiUR 3vtqu0OFeFMSK6tSi/Lji0pzUosPMUpzsCiJ88pu2BwqJJCeWJKanZpakFoEk2Xi4JRqYNTj eNinvSn37vPb/Cs5lfZabPlcV3B4My/X6l/7PmWtifhUxcQrscV0+YPvsrnWrWlrPtoKvBW0 tu4Tz/a8nNQkk8r5I03wyjKT485JBsu0Lrx3ZZo5b+m1Z3pHaua9Vz0kmpC74uv+kHhW3/Ne jyKZtZ/uLPPe5vy/mPfs06C8+OT/pkfYnimxFGckGmoxFxUnAgBwVS8isQIAAA== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 969 Lines: 34 Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/udc/goku_udc.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/usb/gadget/udc/goku_udc.c b/drivers/usb/gadget/udc/goku_udc.c index 9e8d842..46b8d14 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; -- 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/