Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754481AbbGaOFX (ORCPT ); Fri, 31 Jul 2015 10:05:23 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:33573 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753061AbbGaOFU (ORCPT ); Fri, 31 Jul 2015 10:05:20 -0400 X-AuditID: cbfee61b-f79706d000001b96-c2-55bb809ee9f1 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 33/46] usb: isp1760: udc: add ep capabilities support Date: Fri, 31 Jul 2015 16:00:45 +0200 Message-id: <1438351258-31578-34-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+NgFprHIsWRmVeSWpSXmKPExsVy+t9jAd15DbtDDR5ek7eY9bKdxeLg/XqL vQvuMlp03j/MbNH09xWLxZ4zv9gtmhevZ7O4sM7cYvfpS4wWvx4IWWx6fI3Vov/caRaLy7vm sFnMXtLPYrFoWSuzxe/v/1gt1h65y27x7mWExbfLzewWx2b/ZbKY3zGV1eLB4Z3sFrPeCFtM +H2BzUHCY/KTjUweC35tZfG4t+8wi0f/us+sHv8O9zN57Jx1l91j/9w17B6bl9R7nJ+xkNFj 9t0fjB59W1YxemzZ/5nR4/iN7UweM1f2snl83iTnsffzb5YAwSgum5TUnMyy1CJ9uwSujD2H +pgLTnFU9LybzN7A+JWti5GTQ0LAROLh2b+sELaYxIV764HiXBxCAksZJW6vO8cE4fxklPh0 9SYzSBWbgI7Elu8TGEFsEQEBifUvLrGDFDEL/GCRODuvmx0kISzgIXH40jOwBhYBVYmJ/1aC reMVcJP43tzCDrFOTuLksclgqzmB4l/XnwWLCwm4Shw5dop5AiPvAkaGVYwSqQXJBcVJ6blG eanlesWJucWleel6yfm5mxjBsfZMegfj4V3uhxgFOBiVeHgFFu8KFWJNLCuuzD3EKMHBrCTC e19td6gQb0piZVVqUX58UWlOavEhRmkOFiVxXn2TTaFCAumJJanZqakFqUUwWSYOTqkGRtec 8tsnHdNn7FT7d6F+57J4mQl6W/bdvRZRv6JUpDb8pfSNB4zaZ740Lg2qUv+4YqnYqUketyKW +9b1+HzuS9T5vfxbJevG4NDldw7FV3E7LnQMiv9y2XT1dP34XTl7/K/6r70fH3Eo68YmgefC S872VbYZnf6zYomj3tYPqQ8eKLVs6Hu/UUCJpTgj0VCLuag4EQD6PRBSsQIAAA== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1304 Lines: 44 Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/isp1760/isp1760-udc.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/drivers/usb/isp1760/isp1760-udc.c b/drivers/usb/isp1760/isp1760-udc.c index 3699962..1c3d0fd 100644 --- a/drivers/usb/isp1760/isp1760-udc.c +++ b/drivers/usb/isp1760/isp1760-udc.c @@ -1383,13 +1383,24 @@ static void isp1760_udc_init_eps(struct isp1760_udc *udc) */ if (ep_num == 0) { usb_ep_set_maxpacket_limit(&ep->ep, 64); + ep->ep.caps.type_control = true; + ep->ep.caps.dir_in = true; + ep->ep.caps.dir_out = true; ep->maxpacket = 64; udc->gadget.ep0 = &ep->ep; } else { usb_ep_set_maxpacket_limit(&ep->ep, 512); + ep->ep.caps.type_iso = true; + ep->ep.caps.type_bulk = true; + ep->ep.caps.type_int = true; ep->maxpacket = 0; list_add_tail(&ep->ep.ep_list, &udc->gadget.ep_list); } + + if (is_in) + ep->ep.caps.dir_in = true; + else + ep->ep.caps.dir_out = true; } } -- 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/