Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753339AbbGOGgC (ORCPT ); Wed, 15 Jul 2015 02:36:02 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:40418 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752506AbbGOGf6 (ORCPT ); Wed, 15 Jul 2015 02:35:58 -0400 X-AuditID: cbfee61a-f79516d000006302-a4-55a5ff3be498 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 20/46] usb: gadget: m66592-udc: add ep capabilities support Date: Wed, 15 Jul 2015 08:32:07 +0200 Message-id: <1436941953-1327-21-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+xoK7N/6WhBqeXMlvMetnOYnHwfr3F 3gV3GS067x9mtmj6+4rFYs+ZX+wWzYvXs1lcWGdusfv0JUaLXw+ELDY9vsZq0X/uNIvF5V1z 2CxmL+lnsVi0rJXZ4vf3f6wWa4/cZbd49zLC4tvlZnaLY7P/Mlk8OLyT3WLWG2EHMY/JTzYy eSz4tZXF496+wywe/es+s3r8O9zP5LFz1l12j/1z17B7bF5S73F+xkJGj74tqxg9tuz/zOhx /MZ2Jo/Pm+Q89n7+zeKxffdylgD+KC6blNSczLLUIn27BK6M5rYOloJD7BUtJ7czNTAuZOti 5OSQEDCRePPrMzOELSZx4d56sLiQwHRGiaffs7sYuYDsn0D2lzXsIAk2AR2JLd8nMILYIkD2 ur872ECKmAXWskjcerOABSQhLOAnsfDRDrCpLAKqEvd+LgOzeQVcJQ4ePg61WU7i5LHJrCA2 J1B8es8vZojNLhJPd31gmsDIu4CRYRWjaGpBckFxUnquoV5xYm5xaV66XnJ+7iZGcBQ9k9rB uLLB4hCjAAejEg/vzSVLQ4VYE8uKK3MPMUpwMCuJ8M7+CBTiTUmsrEotyo8vKs1JLT7EKM3B oiTOezLfJ1RIID2xJDU7NbUgtQgmy8TBKdXA2Bt0Inp66fJrG3sWCH1WOfxDIeaamcmbSCXL gJgT69/bnP/lE/NYaNk5R9ezfXblzW/YucxeT1Bc+vzIyZ8NWZ3H3/0Ln3Z1Qbrq1Kw1zo+1 N2x5fb12y4vTaXrNphczW7u0j/B/vrVd0z3skFHr9VldYcrJHCpJe8VTDp6zjlf7fEI7gGXJ GiWW4oxEQy3mouJEAECjQq2eAgAA 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 309706f..e404553 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/