Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754114AbbGaODs (ORCPT ); Fri, 31 Jul 2015 10:03:48 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:52946 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754089AbbGaODp (ORCPT ); Fri, 31 Jul 2015 10:03:45 -0400 X-AuditID: cbfee61a-f79a06d000005c6f-b6-55bb803f0158 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 20/46] usb: gadget: m66592-udc: add ep capabilities support Date: Fri, 31 Jul 2015 16:00:32 +0200 Message-id: <1438351258-31578-21-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: H4sIAAAAAAAAAzWRbUhTYRiGfXfe7ZytFqej5Iuh0KCsMNMSfAuxgsyTYlkxCP/YSU9TcnPt TMsgtEzt0y1FSM3UtMhlrpyhzi+cZqhpQ0OMmAqGpZlFQ12Kkkv6d133fcPz46EIpgz6UMka Pa/TcCkKiQz2r07Sew5ltSiDJgr345LpPIg7xzNxW4UD4NvjXQS+sTIDcev7JRJnV5kl2F4X ilv6hwBemmBw/eSIGBsG+yEetj6S4NJqA8RPnuUQeHlxVYxfdjtIPDd9Fi8MZ5O4p3RFhMtv FYnxRFcziUtmPbFx2S45jNjCL69FbMXSG8iOtXdB1lDnFLOrXQYR21ziINmOslqStVRnsh8e VgK21OECbH6DCbANHU7AvhttFLHFNfclrLPej21zLsPYzXGysEQ+JTmd1+0NPydLym1dJrQ2 8kqVyyrOApWSO0BKIToEuYquw3Xeguxj5rVcRjH0U4Dae38T6/IHoNFPbpFSEjoANSwagZu9 aBqZvw2R7hFBuyAaeHx3TSjKkz6Bsm/uc28gvR0VF82L3Cynj6Ep8y/R+jU/1NtTKHazdC2f Nw+QbmboCNTd00cYgbwCeJgA4rUJWuG8Sh2s4S8HCpxaSNOoAhNS1fXg39OmfJpApzXSBmgK KDbK6SqrkhFz6UKG2gYQRSi85OM7WpSMPJHLuMrrUuN1aSm8YANbKajwlvu+sigZWsXp+Ys8 r+V1/1sRJfXJAgVBvRZSJgIPfpwsiILRG0gYnzRblJNeOxcRVawUvCMbFds8ksv9ww+M5sec KYOxcUc8E0P4TrQQ1TeyM49+zugvyW2FpuhW39nQFz/R8fiPAZtSvqfu+hxj8r9mGQzj7MLb pq98w6mVo6cHZogLiUO5+pp7A0ZOpQ88CCYVUEjigncTOoH7C75Hv3iwAgAA Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1175 Lines: 37 Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/udc/m66592-udc.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/drivers/usb/gadget/udc/m66592-udc.c b/drivers/usb/gadget/udc/m66592-udc.c index 9704053..b1cfa96 100644 --- a/drivers/usb/gadget/udc/m66592-udc.c +++ b/drivers/usb/gadget/udc/m66592-udc.c @@ -1644,6 +1644,17 @@ static int m66592_probe(struct platform_device *pdev) ep->ep.name = m66592_ep_name[i]; ep->ep.ops = &m66592_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(&m66592->ep[0].ep, 64); m66592->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/