Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752925AbbGaODz (ORCPT ); Fri, 31 Jul 2015 10:03:55 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:42605 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754089AbbGaODw (ORCPT ); Fri, 31 Jul 2015 10:03:52 -0400 X-AuditID: cbfee61a-f79a06d000005c6f-bf-55bb8046407e 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 21/46] usb: gadget: mv_u3d_core: add ep capabilities support Date: Fri, 31 Jul 2015 16:00:33 +0200 Message-id: <1438351258-31578-22-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+NgFprLIsWRmVeSWpSXmKPExsVy+t9jAV33ht2hBpe/sVvMetnOYnHwfr3F 3gV3GS067x9mtmj6+4rFYs+ZX+wWzYvXs1lcWGdusfv0JUaLXw+ELDY9vsZq0X/uNIvF5V1z 2CxmL+lnsVi0rJXZ4vf3f6wWa4/cZbd49zLC4tvlZnaLY7P/MlnM75jKavHg8E6gTW+ELSb8 vsDmIOEx+clGJo8Fv7ayeNzbd5jFo3/dZ1aPf4f7mTx2zrrL7rF/7hp2j81L6j3Oz1jI6DH7 7g9Gj74tqxg9tuz/zOhx/MZ2Jo+ZK3vZPD5vkvPY+/k3S4BgFJdNSmpOZllqkb5dAlfGjq4L TAXHuCvOTZvB2MC4n7OLkZNDQsBE4unhh8wQtpjEhXvr2boYuTiEBJYySiz+/IUZwvnJKDHh 3QywKjYBHYkt3ycwgtgiAgIS619cYgcpYhb4wSJxdl43O0hCWMBfYuvJtSwgNouAqsSMLTeB 4hwcvAJuEvNf+0Bsk5M4eWwyK4jNCRT+uv4sWKuQgKvEkWOnmCcw8i5gZFjFKJFakFxQnJSe a5iXWq5XnJhbXJqXrpecn7uJERxpz6R2MB7c5X6IUYCDUYmHV2DxrlAh1sSy4srcQ4wSHMxK Irz31XaHCvGmJFZWpRblxxeV5qQWH2KU5mBREueV3bA5VEggPbEkNTs1tSC1CCbLxMEp1cBY ucaL6RqPnXn0qhvSOurd1uqZMxeZTXPu3/eGt+DF254dHjYLn3y2MVC+97FXcWP00Vs+jw22 Szzb2pmTNc2tyDvTpL+1ZbdO8/x/TTqf9nt4/X7RXeHxdo7jhfnLd7n7bbw4/ax2RcRB5+N5 1f7Ct3Yr2Ya0vZ3oYSJgasX4j0NTQpyhmFmJpTgj0VCLuag4EQBz8Y5SsAIAAA== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1678 Lines: 50 Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/udc/mv_u3d_core.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/usb/gadget/udc/mv_u3d_core.c b/drivers/usb/gadget/udc/mv_u3d_core.c index ea35a24..4c48969 100644 --- a/drivers/usb/gadget/udc/mv_u3d_core.c +++ b/drivers/usb/gadget/udc/mv_u3d_core.c @@ -1324,6 +1324,9 @@ static int mv_u3d_eps_init(struct mv_u3d *u3d) ep->ep.ops = &mv_u3d_ep_ops; ep->wedge = 0; usb_ep_set_maxpacket_limit(&ep->ep, MV_U3D_EP0_MAX_PKT_SIZE); + ep->ep.caps.type_control = true; + ep->ep.caps.dir_in = true; + ep->ep.caps.dir_out = true; ep->ep_num = 0; ep->ep.desc = &mv_u3d_ep0_desc; INIT_LIST_HEAD(&ep->queue); @@ -1339,14 +1342,20 @@ static int mv_u3d_eps_init(struct mv_u3d *u3d) if (i & 1) { snprintf(name, sizeof(name), "ep%din", i >> 1); ep->direction = MV_U3D_EP_DIR_IN; + ep->ep.caps.dir_in = true; } else { snprintf(name, sizeof(name), "ep%dout", i >> 1); ep->direction = MV_U3D_EP_DIR_OUT; + ep->ep.caps.dir_out = true; } ep->u3d = u3d; strncpy(ep->name, name, sizeof(ep->name)); ep->ep.name = ep->name; + ep->ep.caps.type_iso = true; + ep->ep.caps.type_bulk = true; + ep->ep.caps.type_int = true; + ep->ep.ops = &mv_u3d_ep_ops; usb_ep_set_maxpacket_limit(&ep->ep, (unsigned short) ~0); ep->ep_num = i / 2; -- 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/