Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753482AbbGOGg4 (ORCPT ); Wed, 15 Jul 2015 02:36:56 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:51401 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753456AbbGOGgw (ORCPT ); Wed, 15 Jul 2015 02:36:52 -0400 X-AuditID: cbfee61a-f79516d000006302-22-55a5ff82a593 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 30/46] usb: gadget: s3c-hsudc: add ep capabilities support Date: Wed, 15 Jul 2015 08:32:17 +0200 Message-id: <1436941953-1327-31-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+xoG7z/6WhBjc3cVrMetnOYnHwfr3F 3gV3GS067x9mtmj6+4rFYs+ZX+wWzYvXs1lcWGdusfv0JUaLXw+ELDY9vsZq0X/uNIvF5V1z 2CxmL+lnsVi0rJXZ4vf3f6wWa4/cZbd49zLC4tvlZnaLY7P/Mlk8OLyT3WLWG2EHMY/JTzYy eSz4tZXF496+wywe/es+s3r8O9zP5LFz1l12j/1z17B7bF5S73F+xkJGj74tqxg9tuz/zOhx /MZ2Jo/Pm+Q89n7+zeKxffdylgD+KC6blNSczLLUIn27BK6Md5vmMBfcZa94/WM6cwPjZrYu Rk4OCQETiYUn21ghbDGJC/fWA8W5OIQEpjNKfFy/jREkISTwk1HiaVs+iM0moCOx5fsEsLgI kL3u7w6wBmaBtSwSt94sYAFJCAv4Smzf2gVWxCKgKjHj7C1mEJtXwFXi2tFbUNvkJE4emwxm cwLFp/f8YoZY5iLxdNcHpgmMvAsYGVYxiqYWJBcUJ6XnGuoVJ+YWl+al6yXn525iBEfRM6kd jCsbLA4xCnAwKvHw3lyyNFSINbGsuDL3EKMEB7OSCO/sj0Ah3pTEyqrUovz4otKc1OJDjNIc LErivCfzfUKFBNITS1KzU1MLUotgskwcnFINjBqXJRZOuGh80t33wV3XvxtqdS8/v+iQvPuz dt17D8PXHiqhtxguPzygbbKly/zB1+WlqakZy/b0/jh9v/acf/bxuZm/7Apnrr/QFGH8yopt 6fzuIx4vzn7uWLujXWitUWvGuq/H9KqM0vp/nfAp5Fu4sfFmy+EFgpdeHDs86a6Y5MMdJ1YE 3j6gxFKckWioxVxUnAgAepsCIJ4CAAA= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1198 Lines: 41 Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/udc/s3c-hsudc.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/drivers/usb/gadget/udc/s3c-hsudc.c b/drivers/usb/gadget/udc/s3c-hsudc.c index 85a712a..e9def42 100644 --- a/drivers/usb/gadget/udc/s3c-hsudc.c +++ b/drivers/usb/gadget/udc/s3c-hsudc.c @@ -1005,6 +1005,21 @@ static void s3c_hsudc_initep(struct s3c_hsudc *hsudc, hsep->stopped = 0; hsep->wedge = 0; + if (epnum == 0) { + hsep->ep.caps.type_control = true; + hsep->ep.caps.dir_in = true; + hsep->ep.caps.dir_out = true; + } else { + hsep->ep.caps.type_iso = true; + hsep->ep.caps.type_bulk = true; + hsep->ep.caps.type_int = true; + } + + if (epnum & 1) + hsep->ep.caps.dir_in = true; + else + hsep->ep.caps.dir_out = true; + set_index(hsudc, epnum); writel(hsep->ep.maxpacket, hsudc->regs + S3C_MPR); } -- 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/