Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753602AbbGOGhd (ORCPT ); Wed, 15 Jul 2015 02:37:33 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:36086 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753537AbbGOGh1 (ORCPT ); Wed, 15 Jul 2015 02:37:27 -0400 X-AuditID: cbfee61b-f79416d0000014c0-21-55a5ff916a1d 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 32/46] usb: gadget: udc-xilinx: add ep capabilities support Date: Wed, 15 Jul 2015 08:32:19 +0200 Message-id: <1436941953-1327-33-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+xoO7E/0tDDZ5uELGY9bKdxeLg/XqL vQvuMlp03j/MbNH09xWLxZ4zv9gtmhevZ7O4sM7cYvfpS4wWvx4IWWx6fI3Vov/caRaLy7vm sFnMXtLPYrFoWSuzxe/v/1gt1h65y27x7mWExbfLzewWx2b/ZbJ4cHgnu8WsN8IOYh6Tn2xk 8ljwayuLx719h1k8+td9ZvX4d7ifyWPnrLvsHvvnrmH32Lyk3uP8jIWMHn1bVjF6bNn/mdHj +I3tTB6fN8l57P38m8Vj++7lLAH8UVw2Kak5mWWpRfp2CVwZd/sbWAr2c1S82vWPqYHxL1sX IyeHhICJxJ6vdxkhbDGJC/fWg8WFBKYzSrTuFuxi5AKyfwLZs18zgSTYBHQktnyfANYgAmSv +7uDDaSIWWAti8StNwtYQBLCAn4SN7esACtiEVCVWP1/F5jNK+Aqsf3ZUajNchInj01mBbE5 geLTe34xQ2x2kXi66wPTBEbeBYwMqxhFUwuSC4qT0nON9IoTc4tL89L1kvNzNzGCo+iZ9A7G VQ0WhxgFOBiVeHgbFi0NFWJNLCuuzD3EKMHBrCTCO/sjUIg3JbGyKrUoP76oNCe1+BCjNAeL kjjvyXyfUCGB9MSS1OzU1ILUIpgsEwenVANj9OPTzyM/PZ71XvQa75k/fPl6st8iEvZ6nr+1 +r4Pp191TRX3jY3GTwWSX4Usub2D81q25YYQ97dR25c9qXV4czuOQ3VGgKTb46I2gWe/Wr9s jNhwSvj8b8mWOJ3O+FlNocUqWZ8/7I5lazk8r3B/wLvfbDpmjsnLerXuv37v8TIrOVp6vnGP EktxRqKhFnNRcSIAOL82k54CAAA= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1296 Lines: 41 Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/udc/udc-xilinx.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/usb/gadget/udc/udc-xilinx.c b/drivers/usb/gadget/udc/udc-xilinx.c index 1f24274..1cbb0ac 100644 --- a/drivers/usb/gadget/udc/udc-xilinx.c +++ b/drivers/usb/gadget/udc/udc-xilinx.c @@ -1317,12 +1317,21 @@ static void xudc_eps_init(struct xusb_udc *udc) snprintf(ep->name, EPNAME_SIZE, "ep%d", ep_number); ep->ep_usb.name = ep->name; ep->ep_usb.ops = &xusb_ep_ops; + + ep->ep_usb.caps.type_iso = true; + ep->ep_usb.caps.type_bulk = true; + ep->ep_usb.caps.type_int = true; } else { ep->ep_usb.name = ep0name; usb_ep_set_maxpacket_limit(&ep->ep_usb, EP0_MAX_PACKET); ep->ep_usb.ops = &xusb_ep0_ops; + + ep->ep_usb.caps.type_control = true; } + ep->ep_usb.caps.dir_in = true; + ep->ep_usb.caps.dir_out = true; + ep->udc = udc; ep->epnumber = ep_number; ep->desc = NULL; -- 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/