Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753715AbbGOGoc (ORCPT ); Wed, 15 Jul 2015 02:44:32 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:54886 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751640AbbGOGgz (ORCPT ); Wed, 15 Jul 2015 02:36:55 -0400 X-AuditID: cbfee61b-f79416d0000014c0-ba-55a5ff7b0ff8 From: Robert Baldyga To: gregkh@linuxfoundation.org, balbi@ti.com Cc: 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, Robert Baldyga Subject: [PATCH v3 29/46] usb: gadget: r8a66597-udc: add ep capabilities support Date: Wed, 15 Jul 2015 08:32:16 +0200 Message-id: <1436941953-1327-30-git-send-email-r.baldyga@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1436941953-1327-1-git-send-email-r.baldyga@samsung.com> References: <1436941953-1327-1-git-send-email-r.baldyga@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupmkeLIzCtJLcpLzFFi42I5/e+xoG7N/6WhBk86mCxmvWxnsTh4v95i 74K7jBad9w8zWzT9fcVisefML3aL5sXr2SwurDO32H36EqPFrwdCFpseX2O16D93msXi8q45 bBazl/SzWCxa1sps8fv7P1aLtUfuslu8exlh8e1yM7vFsdl/mSweHN7JbjHrjbCDmMfkJxuZ PBb82sricW/fYRaP/nWfWT3+He5n8tg56y67x/65a9g9Ni+p9zg/YyGjR9+WVYweW/Z/ZvQ4 fmM7k8fnTXIeez//ZvHYvns5SwB/FJdNSmpOZllqkb5dAlfGjRezmQousVdMX9LF2MC4ma2L kZNDQsBEYsOE78wQtpjEhXvrgeJcHEIC0xklmubsZ4JwfjJKrOmYDNbBJqAjseX7BEYQWwTI Xvd3B1gHs8BaFolbbxawgCSEBQIkltxZBTSWg4NFQFVi5lZdkDCvgKtE6/TNTBDb5CROHpvM CmJzAsWn9/wCu0JIwEXi6a4PTBMYeRcwMqxiFE0tSC4oTkrPNdIrTswtLs1L10vOz93ECI6i Z9I7GFc1WBxiFOBgVOLhbVi0NFSINbGsuDL3EKMEB7OSCO/sj0Ah3pTEyqrUovz4otKc1OJD jNIcLErivCfzfUKFBNITS1KzU1MLUotgskwcnFINjG5tdYxZVcZvooXCNXuu7/t+/aGwwIS3 9/foLZNcdv9lwLODcxd/PqmQd/vm+SaNWc+evGZlnLz50RTvkzsnny88lnSo8TaD2aPoDyLO y/LPJ2n9YPaquGwuv/dug2J19LfCj1NnOrQm3jsfc1lUIbPOmj1wtdHxlD6dN/ves/v9/Ha5 6uDDcG0lluKMREMt5qLiRADUePLangIAAA== 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/