Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753067AbbGOGqO (ORCPT ); Wed, 15 Jul 2015 02:46:14 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:46995 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753335AbbGOGgC (ORCPT ); Wed, 15 Jul 2015 02:36:02 -0400 X-AuditID: cbfee61a-f79516d000006302-d9-55a5ff511d2d 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 23/46] usb: gadget: net2272: add ep capabilities support Date: Wed, 15 Jul 2015 08:32:10 +0200 Message-id: <1436941953-1327-24-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+xoG7g/6WhBmubRS1mvWxnsTh4v95i 74K7jBad9w8zWzT9fcVisefML3aL5sXr2SwurDO32H36EqPFrwdCFpseX2O16D93msXi8q45 bBazl/SzWCxa1sps8fv7P1aLtUfuslu8exlh8e1yM7vFsdl/mSweHN7JbjHrjbCDmMfkJxuZ PBb82sricW/fYRaP/nWfWT3+He5n8tg56y67x/65a9g9Ni+p9zg/YyGjR9+WVYweW/Z/ZvQ4 fmM7k8fnTXIeez//ZvHYvns5SwB/FJdNSmpOZllqkb5dAldG/+z6gvNsFfdfH2VqYNzK2sXI ySEhYCLRe/EElC0mceHeerYuRi4OIYHpjBIfdx+Ecn4ySpx49o8NpIpNQEdiy/cJjCC2CJC9 7u8OsCJmgbUsErfeLGABSQgLeEucuv0OzGYRUJWYNmUnO4jNK+Aq8XrzX6h1chInj00GszmB 4tN7fjGD2EICLhJPd31gmsDIu4CRYRWjaGpBckFxUnquoV5xYm5xaV66XnJ+7iZGcBQ9k9rB uLLB4hCjAAejEg/vzSVLQ4VYE8uKK3MPMUpwMCuJ8M7+CBTiTUmsrEotyo8vKs1JLT7EKM3B oiTOezLfJ1RIID2xJDU7NbUgtQgmy8TBKdXAqFlldejA0V1JC123nhMTlL1Qkucn+afSbcdc HvF5k1/zbH8v3BN6N3XGx+3Hsr7ucGVP0osIul95IvFgNL/Itu99vh+bJ7yw3/6qXfGX0O3p dpWCqZNe357KmZH91Oj0X3dr47LA80cXB//ctlEmlW2foJjLYb6qguXfS+ZH1JjcvvqcnSGm R4mlOCPRUIu5qDgRAJJCezaeAgAA Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1060 Lines: 37 Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/udc/net2272.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/drivers/usb/gadget/udc/net2272.c b/drivers/usb/gadget/udc/net2272.c index 195baf3..34ec1ec 100644 --- a/drivers/usb/gadget/udc/net2272.c +++ b/drivers/usb/gadget/udc/net2272.c @@ -1404,6 +1404,17 @@ net2272_usb_reinit(struct net2272 *dev) else ep->fifo_size = 64; net2272_ep_reset(ep); + + if (i == 0) { + ep->ep.caps.type_control = true; + } else { + ep->ep.caps.type_iso = true; + ep->ep.caps.type_bulk = true; + ep->ep.caps.type_int = true; + } + + ep->ep.caps.dir_in = true; + ep->ep.caps.dir_out = true; } usb_ep_set_maxpacket_limit(&dev->ep[0].ep, 64); -- 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/