Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754364AbbGaOEy (ORCPT ); Fri, 31 Jul 2015 10:04:54 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:39355 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754330AbbGaOEu (ORCPT ); Fri, 31 Jul 2015 10:04:50 -0400 X-AuditID: cbfee61b-f79706d000001b96-0d-55bb80814bdb 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 29/46] usb: gadget: r8a66597-udc: add ep capabilities support Date: Fri, 31 Jul 2015 16:00:41 +0200 Message-id: <1438351258-31578-30-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+NgFprLIsWRmVeSWpSXmKPExsVy+t9jAd3Ght2hBn+6pCxmvWxnsTh4v95i 74K7jBad9w8zWzT9fcVisefML3aL5sXr2SwurDO32H36EqPFrwdCFpseX2O16D93msXi8q45 bBazl/SzWCxa1sps8fv7P1aLtUfuslu8exlh8e1yM7vFsdl/mSzmd0xltXhweCe7xaw3whYT fl9gc5DwmPxkI5PHgl9bWTzu7TvM4tG/7jOrx7/D/UweO2fdZffYP3cNu8fmJfUe52csZPSY ffcHo0ffllWMHlv2f2b0OH5jO5PHzJW9bB6fN8l57P38myVAMIrLJiU1J7MstUjfLoEr48aL 2UwFl9grpi/pYmxg3MzWxcjJISFgIvHw+RomCFtM4sK99UBxLg4hgaWMEsf7VrNDOD8ZJXrm N7KAVLEJ6Ehs+T6BEcQWERCQWP/iElgRs8APFomz87qBHA4OYYEAiWeTc0BqWARUJd582gXW yyvgJtHdMBFqm5zEyWOTWUFsTqD41/Vn2UFsIQFXiSPHTjFPYORdwMiwilEitSC5oDgpPdco L7Vcrzgxt7g0L10vOT93EyM40p5J72A8vMv9EKMAB6MSD6/A4l2hQqyJZcWVuYcYJTiYlUR4 76vtDhXiTUmsrEotyo8vKs1JLT7EKM3BoiTOq2+yKVRIID2xJDU7NbUgtQgmy8TBKdXAGPjt dl4Wj8MqLVaNno9RzN/nez3eE+LKPE/518IP9/pMrNZ+ku9WmS/+L3CKy75zH7cqKX5IUJ03 87W67i//MzHfp+8Tl7o+5yWTROu/8CPSwZZXvnUaukYKmwXWeja2dd10kE3U3VYcm2fyLsWu 7uad+WHGCreUOUOyNx041xf/vY7p6zwVJZbijERDLeai4kQAjgWQw7ACAAA= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1192 Lines: 36 Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/udc/r8a66597-udc.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drivers/usb/gadget/udc/r8a66597-udc.c b/drivers/usb/gadget/udc/r8a66597-udc.c index 0293f71..baa0609 100644 --- a/drivers/usb/gadget/udc/r8a66597-udc.c +++ b/drivers/usb/gadget/udc/r8a66597-udc.c @@ -1935,6 +1935,16 @@ static int r8a66597_probe(struct platform_device *pdev) ep->ep.name = r8a66597_ep_name[i]; ep->ep.ops = &r8a66597_ep_ops; usb_ep_set_maxpacket_limit(&ep->ep, 512); + + 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(&r8a66597->ep[0].ep, 64); r8a66597->ep[0].pipenum = 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/