Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753728AbbGaOB7 (ORCPT ); Fri, 31 Jul 2015 10:01:59 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:57323 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753668AbbGaOBz (ORCPT ); Fri, 31 Jul 2015 10:01:55 -0400 X-AuditID: cbfee61b-f79706d000001b96-3a-55bb7fd2d980 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 05/46] usb: chipidea: udc: add ep capabilities support Date: Fri, 31 Jul 2015 16:00:17 +0200 Message-id: <1438351258-31578-6-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+NgFprNIsWRmVeSWpSXmKPExsVy+t9jAd1L9btDDfo6+S1mvWxnsTh4v95i 74K7jBad9w8zWzT9fcVisefML3aL5sXr2SwurDO32H36EqPFrwdCFpseX2O16D93msXi8q45 bBazl/SzWCxa1sps8fv7P1aLtUfuslu8exlh8e1yM7vFsdl/mSzmd0xltXhweCe7xaw3whYT fl9gc5DwmPxkI5PHgl9bWTzu7TvM4tG/7jOrx7/D/UweO2fdZffYP3cNu8fmJfUe52csZPSY ffcHo0ffllWMHlv2f2b0OH5jO5PHzJW9bB6fN8l57P38myVAMIrLJiU1J7MstUjfLoEr4/DK buaCdewVrzvmMzYwXmXtYuTgkBAwkTj4irOLkRPIFJO4cG89WxcjF4eQwFJGib4lN9hBEkIC PxklDkz1BbHZBHQktnyfwAhiiwgISKx/cYkdpIFZ4AeLxNl53ewgQ4UFPCXmzagAqWERUJVY P+MbC4jNK+AqMeFYNzPEMjmJk8cms4LYnAJuEl/Xn4Xa5Spx5Ngp5gmMvAsYGVYxSqQWJBcU J6XnGuWllusVJ+YWl+al6yXn525iBEfZM+kdjId3uR9iFOBgVOLhFVi8K1SINbGsuDL3EKME B7OSCO99td2hQrwpiZVVqUX58UWlOanFhxilOViUxHn1TTaFCgmkJ5akZqemFqQWwWSZODil GhizVmR94bJksz19Kq7ok0Ny05eJe66Vxxw06Fu4f06+9OFNFQ3F/5Wn1KawTAiWKlCK2Po8 perPgl2cUglqe3tPnwhUmL9TT1bS4Ln1w9+Hy1SNfgcanbxZUJj/8Ol/20NWby+ePbzff+nH 5AVvMsR1mGQ3bp5lXj/Pd8+zUlOTv/FGZccSFvcpsRRnJBpqMRcVJwIAf911Eq4CAAA= 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 b7cca3e..4aaa476 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/