Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752657AbbGOGd6 (ORCPT ); Wed, 15 Jul 2015 02:33:58 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:58748 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751966AbbGOGdy (ORCPT ); Wed, 15 Jul 2015 02:33:54 -0400 X-AuditID: cbfee61a-f79516d000006302-b3-55a5fed13710 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 05/46] usb: chipidea: udc: add ep capabilities support Date: Wed, 15 Jul 2015 08:31:52 +0200 Message-id: <1436941953-1327-6-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+NgFuphkeLIzCtJLcpLzFFi42I5/e+xoO7Ff0tDDXacVbCY9bKdxeLg/XqL vQvuMlp03j/MbNH09xWLxZ4zv9gtmhevZ7O4sM7cYvfpS4wWvx4IWWx6fI3Vov/caRaLy7vm sFnMXtLPYrFoWSuzxe/v/1gt1h65y27x7mWExbfLzewWx2b/ZbJ4cHgnu8WsN8IOYh6Tn2xk 8ljwayuLx719h1k8+td9ZvX4d7ifyWPnrLvsHvvnrmH32Lyk3uP8jIWMHn1bVjF6bNn/mdHj +I3tTB6fN8l57P38m8Vj++7lLAH8UVw2Kak5mWWpRfp2CVwZR3+dYyxYx14x7ekxxgbGq6xd jJwcEgImEhu6/zND2GISF+6tZ+ti5OIQEpjOKPFu9lxGCOcno8T3JZPZQKrYBHQktnyfwAhi iwDZ6/7uAOtgFljLInHrzQIWkISwgKfEm/+/wIpYBFQlvrW/AYvzCrhI7F+wmhFinZzEyWOT wc7gFHCVmN7zC+wMIaCap7s+ME1g5F3AyLCKUTS1ILmgOCk911CvODG3uDQvXS85P3cTIziO nkntYFzZYHGIUYCDUYmH9+aSpaFCrIllxZW5hxglOJiVRHhnfwQK8aYkVlalFuXHF5XmpBYf YpTmYFES5z2Z7xMqJJCeWJKanZpakFoEk2Xi4JRqYLwwRaPp/iOBPA3eryYrjSJaTdbUSXyJ l58a+4A3wMfz2lwN9WOOrydNtde80hUmMKP2TEv896WM57ZKVhoK80UJHeq5Oje8ZUlPzJLF 57YfuMgxb0LX68W6my7mZLLauKt2RzR53ja9rakXsf2a462jPjmTGieK6N/6li7bnVbzvW1B 3/rYZiWW4oxEQy3mouJEAHugqr6fAgAA Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1152 Lines: 40 Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/chipidea/udc.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/drivers/usb/chipidea/udc.c b/drivers/usb/chipidea/udc.c index 764f668..eff7cfb 100644 --- a/drivers/usb/chipidea/udc.c +++ b/drivers/usb/chipidea/udc.c @@ -1624,6 +1624,20 @@ static int init_eps(struct ci_hdrc *ci) hwep->ep.name = hwep->name; hwep->ep.ops = &usb_ep_ops; + + if (i == 0) { + hwep->ep.caps.type_control = true; + } else { + hwep->ep.caps.type_iso = true; + hwep->ep.caps.type_bulk = true; + hwep->ep.caps.type_int = true; + } + + if (j == TX) + hwep->ep.caps.dir_in = true; + else + hwep->ep.caps.dir_out = true; + /* * for ep0: maxP defined in desc, for other * eps, maxP is set by epautoconfig() called -- 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/