Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753082AbbGOGey (ORCPT ); Wed, 15 Jul 2015 02:34:54 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:56157 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753055AbbGOGev (ORCPT ); Wed, 15 Jul 2015 02:34:51 -0400 X-AuditID: cbfee61a-f79516d000006302-3e-55a5ff0aae34 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 13/46] usb: gadget: fotg210-udc: add ep capabilities support Date: Wed, 15 Jul 2015 08:32:00 +0200 Message-id: <1436941953-1327-14-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+xoC7X/6WhBi0zhC1mvWxnsTh4v95i 74K7jBad9w8zWzT9fcVisefML3aL5sXr2SwurDO32H36EqPFrwdCFpseX2O16D93msXi8q45 bBazl/SzWCxa1sps8fv7P1aLtUfuslu8exlh8e1yM7vFsdl/mSweHN7JbjHrjbCDmMfkJxuZ PBb82sricW/fYRaP/nWfWT3+He5n8tg56y67x/65a9g9Ni+p9zg/YyGjR9+WVYweW/Z/ZvQ4 fmM7k8fnTXIeez//ZvHYvns5SwB/FJdNSmpOZllqkb5dAlfG45cVBZ/YKybuXcrawHierYuR k0NCwETi/fJX7BC2mMSFe+uB4lwcQgLTGSW+z1nCBOH8ZJR4+/MgI0gVm4COxJbvE8BsESB7 3d8dYB3MAmtZJG69WcACkhAW8JfYvOI4M4jNIqAq0bn3J9g6XgFXifOfNjFDrJOTOHlsMiuI zQkUn97zCywuJOAi8XTXB6YJjLwLGBlWMYqmFiQXFCel5xrqFSfmFpfmpesl5+duYgRH0TOp HYwrGywOMQpwMCrx8N5csjRUiDWxrLgy9xCjBAezkgjv7I9AId6UxMqq1KL8+KLSnNTiQ4zS HCxK4rwn831ChQTSE0tSs1NTC1KLYLJMHJxSDYw7n06Xvnm50ZHjzS2xaF59fj7Pq3/El308 ns5nszglpP1E7Y1np7hTNtR6WZQa6Vo4qf7+8SMxWzFKceaimqaXM8VXzv4Wpeweu3v7pgsy q+T93LQrT87f8YbzwJHNcienrwz8ttf9qnzFLhdF6dLtdc9baozSKz/5pS9XVlrtz+1ad4XL sFCJpTgj0VCLuag4EQCAMsFLngIAAA== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1223 Lines: 37 Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/udc/fotg210-udc.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/drivers/usb/gadget/udc/fotg210-udc.c b/drivers/usb/gadget/udc/fotg210-udc.c index e547ea7..960c70c 100644 --- a/drivers/usb/gadget/udc/fotg210-udc.c +++ b/drivers/usb/gadget/udc/fotg210-udc.c @@ -1153,6 +1153,17 @@ static int fotg210_udc_probe(struct platform_device *pdev) ep->ep.name = fotg210_ep_name[i]; ep->ep.ops = &fotg210_ep_ops; usb_ep_set_maxpacket_limit(&ep->ep, (unsigned short) ~0); + + 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(&fotg210->ep[0]->ep, 0x40); fotg210->gadget.ep0 = &fotg210->ep[0]->ep; -- 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/