Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753996AbbGaODG (ORCPT ); Fri, 31 Jul 2015 10:03:06 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:48859 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753952AbbGaODB (ORCPT ); Fri, 31 Jul 2015 10:03:01 -0400 X-AuditID: cbfee61a-f79a06d000005c6f-83-55bb80130986 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 14/46] usb: gadget: fsl_qe_udc: add ep capabilities support Date: Fri, 31 Jul 2015 16:00:26 +0200 Message-id: <1438351258-31578-15-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+t9jAV2Rht2hBkcOMFvMetnOYnHwfr3F 3gV3GS067x9mtmj6+4rFYs+ZX+wWzYvXs1lcWGdusfv0JUaLXw+ELDY9vsZq0X/uNIvF5V1z 2CxmL+lnsVi0rJXZ4vf3f6wWa4/cZbd49zLC4tvlZnaLY7P/MlnM75jKavHg8E52i1lvhC0m /L7A5iDhMfnJRiaPBb+2snjc23eYxaN/3WdWj3+H+5k8ds66y+6xf+4ado/NS+o9zs9YyOgx ++4PRo++LasYPbbs/8zocfzGdiaPmSt72Tw+b5Lz2Pv5N0uAYBSXTUpqTmZZapG+XQJXRvP7 g6wFe9kr/t7/w9TAuISti5GTQ0LAROLN/4ssELaYxIV764HiXBxCAksZJS5/3M8I4fxklOhZ uIMJpIpNQEdiy/cJjCC2iICAxPoXl9hBipgFfrBInJ3XzQ6SEBbwkzh36iYriM0ioCpx4/N0 sBW8Am4Sm89+hFotJ3Hy2GSwGk6g+Nf1Z8F6hQRcJY4cO8U8gZF3ASPDKkaJ1ILkguKk9FzD vNRyveLE3OLSvHS95PzcTYzgWHsmtYPx4C73Q4wCHIxKPLwCi3eFCrEmlhVX5h5ilOBgVhLh va+2O1SINyWxsiq1KD++qDQntfgQozQHi5I4r+yGzaFCAumJJanZqakFqUUwWSYOTqkGxvkR Qtfnsaq7R192ub+n1ZLDgZtBcOKaQ66LvWesCdO+Jrn69NcDxU9q1MPc797057Wb4/8lJJV9 1/HIyZt2PvqW4y9h+PiwbNPsA8ZL2Z5fDd7A0/Kc1Z27s/Sqgc1KxvXVroGXo451+STnS75o XbHpUNK3jSp+2dxXFa92LewLOMqm8eN+hBJLcUaioRZzUXEiAFIpSkWxAgAA Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1170 Lines: 37 Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/udc/fsl_qe_udc.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/drivers/usb/gadget/udc/fsl_qe_udc.c b/drivers/usb/gadget/udc/fsl_qe_udc.c index e0822f1..5fb6f8b 100644 --- a/drivers/usb/gadget/udc/fsl_qe_udc.c +++ b/drivers/usb/gadget/udc/fsl_qe_udc.c @@ -2417,6 +2417,17 @@ static int qe_ep_config(struct qe_udc *udc, unsigned char pipe_num) strcpy(ep->name, ep_name[pipe_num]); ep->ep.name = ep_name[pipe_num]; + if (pipe_num == 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; + ep->ep.ops = &qe_ep_ops; ep->stopped = 1; usb_ep_set_maxpacket_limit(&ep->ep, (unsigned short) ~0); -- 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/