Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754556AbbGaOFt (ORCPT ); Fri, 31 Jul 2015 10:05:49 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:36267 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753065AbbGaOFm (ORCPT ); Fri, 31 Jul 2015 10:05:42 -0400 X-AuditID: cbfee61a-f79a06d000005c6f-a3-55bb80b40dee 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 36/46] usb: gadget: atmel_usba_udc: add ep capabilities support Date: Fri, 31 Jul 2015 16:00:48 +0200 Message-id: <1438351258-31578-37-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+NgFprNIsWRmVeSWpSXmKPExsVy+t9jAd0tDbtDDT49F7KY9bKdxeLg/XqL vQvuMlp03j/MbNH09xWLxZ4zv9gtmhevZ7O4sM7cYvfpS4wWvx4IWWx6fI3Vov/caRaLy7vm sFnMXtLPYrFoWSuzxe/v/1gt1h65y27x7mWExbfLzewWx2b/ZbKY3zGV1eLB4Z3sFrPeCFtM +H2BzUHCY/KTjUweC35tZfG4t+8wi0f/us+sHv8O9zN57Jx1l91j/9w17B6bl9R7nJ+xkNFj 9t0fjB59W1YxemzZ/5nR4/iN7UweM1f2snl83iTnsffzb5YAwSgum5TUnMyy1CJ9uwSujBOz cwoOsFcseF3VwDiPrYuRg0NCwESivym0i5ETyBSTuHBvPVCYi0NIYCmjRNPjg0wQzk9GiXd7 ljOCVLEJ6Ehs+T4BzBYREJBY/+ISO0gRs8APFomz87rZQRLCAiES17/+ZQOxWQRUJX5OOQTW wCvgJvGwfTc7xDo5iZPHJrOC2JxA8a/rz4LFhQRcJY4cO8U8gZF3ASPDKkaJ1ILkguKk9FzD vNRyveLE3OLSvHS95PzcTYzgKHsmtYPx4C73Q4wCHIxKPLwCi3eFCrEmlhVX5h5ilOBgVhLh va+2O1SINyWxsiq1KD++qDQntfgQozQHi5I4r+yGzaFCAumJJanZqakFqUUwWSYOTqkGRpsJ 0ZM3+0wqUL4UvDElq3Tpo/KgCMWv8fmZLpmcC23c31msXpLNIfHv6d8l+Z98BOOZC7LeR5pM WpTUqcBhM41bezZvYscO/RsPOZevvCTY79tlM2+zuGH1M2erjYxnb9xTWnjGS3CF+9MHs+Ui dr35b+ayNzz21PulF3v687wkDlid3aPspsRSnJFoqMVcVJwIABo+Gq2uAgAA Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1173 Lines: 37 Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/udc/atmel_usba_udc.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/drivers/usb/gadget/udc/atmel_usba_udc.c b/drivers/usb/gadget/udc/atmel_usba_udc.c index 37d414e..267d84f 100644 --- a/drivers/usb/gadget/udc/atmel_usba_udc.c +++ b/drivers/usb/gadget/udc/atmel_usba_udc.c @@ -2067,6 +2067,17 @@ static struct usba_ep * usba_udc_pdata(struct platform_device *pdev, ep->can_dma = pdata->ep[i].can_dma; ep->can_isoc = pdata->ep[i].can_isoc; + if (i == 0) { + ep->ep.caps.type_control = true; + } else { + ep->ep.caps.type_iso = ep->can_isoc; + ep->ep.caps.type_bulk = true; + ep->ep.caps.type_int = true; + } + + ep->ep.caps.dir_in = true; + ep->ep.caps.dir_out = true; + if (i) list_add_tail(&ep->ep.ep_list, &udc->gadget.ep_list); } -- 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/