Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753577AbbGOGhb (ORCPT ); Wed, 15 Jul 2015 02:37:31 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:54768 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753556AbbGOGh2 (ORCPT ); Wed, 15 Jul 2015 02:37:28 -0400 X-AuditID: cbfee61a-f79516d000006302-79-55a5ffa612e5 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 35/46] usb: renesas: gadget: add ep capabilities support Date: Wed, 15 Jul 2015 08:32:22 +0200 Message-id: <1436941953-1327-36-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+xoO6y/0tDDS5s1rKY9bKdxeLg/XqL vQvuMlp03j/MbNH09xWLxZ4zv9gtmhevZ7O4sM7cYvfpS4wWvx4IWWx6fI3Vov/caRaLy7vm sFnMXtLPYrFoWSuzxe/v/1gt1h65y27x7mWExbfLzewWx2b/ZbJ4cHgnu8WsN8IOYh6Tn2xk 8ljwayuLx719h1k8+td9ZvX4d7ifyWPnrLvsHvvnrmH32Lyk3uP8jIWMHn1bVjF6bNn/mdHj +I3tTB6fN8l57P38m8Vj++7lLAH8UVw2Kak5mWWpRfp2CVwZR3/7FyzkqPjwupO5gfE9Wxcj J4eEgInEsxl/oGwxiQv31gPZXBxCAtMZJV4vnsMI4fxklOjceQusik1AR2LL9wmMILYIkL3u 7w6wDmaBtSwSt94sYAFJCAt4SzxaOhWsgUVAVaL540cwm1fAVWLzj1XMEOvkJE4em8wKYnMC xaf3/AKLCwm4SDzd9YFpAiPvAkaGVYyiqQXJBcVJ6bmGesWJucWleel6yfm5mxjBUfRMagfj ygaLQ4wCHIxKPLw3lywNFWJNLCuuzD3EKMHBrCTCO/sjUIg3JbGyKrUoP76oNCe1+BCjNAeL kjjvyXyfUCGB9MSS1OzU1ILUIpgsEwenVAOjvH1s5Zr8sL5d9V7CE4rlernfC9lm8O7hu1B7 ozdpB7vJ3q9NB449Ceo6KmXHGPDv4X39DNWZ59ntPp7OrmlKNj5S/2n5rESxjF0Nzy1CyhxX ThZ6dl11whTrHnPmU0zhL93Ezx/bV2Jl+qInY45HbNozh6/m/yzuyVk56DyYaCL5IM+8MFeJ pTgj0VCLuag4EQBoUhfOngIAAA== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1269 Lines: 38 Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/renesas_usbhs/mod_gadget.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/usb/renesas_usbhs/mod_gadget.c b/drivers/usb/renesas_usbhs/mod_gadget.c index dc2aa32..ed8d890 100644 --- a/drivers/usb/renesas_usbhs/mod_gadget.c +++ b/drivers/usb/renesas_usbhs/mod_gadget.c @@ -1041,12 +1041,18 @@ int usbhs_mod_gadget_probe(struct usbhs_priv *priv) if (usbhsg_is_dcp(uep)) { gpriv->gadget.ep0 = &uep->ep; usb_ep_set_maxpacket_limit(&uep->ep, 64); + uep->ep.caps.type_control = true; } /* init normal pipe */ else { usb_ep_set_maxpacket_limit(&uep->ep, 512); + uep->ep.caps.type_iso = true; + uep->ep.caps.type_bulk = true; + uep->ep.caps.type_int = true; list_add_tail(&uep->ep.ep_list, &gpriv->gadget.ep_list); } + uep->ep.caps.dir_in = true; + uep->ep.caps.dir_out = true; } ret = usb_add_gadget_udc(dev, &gpriv->gadget); -- 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/