Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754395AbbGaOFB (ORCPT ); Fri, 31 Jul 2015 10:05:01 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:52737 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754362AbbGaOE6 (ORCPT ); Fri, 31 Jul 2015 10:04:58 -0400 X-AuditID: cbfee61a-f79a06d000005c6f-20-55bb8088567f 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 30/46] usb: gadget: s3c-hsudc: add ep capabilities support Date: Fri, 31 Jul 2015 16:00:42 +0200 Message-id: <1438351258-31578-31-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: H4sIAAAAAAAAAzWRW0iTYRzGe/d92/e5HH1NqRcrLxZ6UR6SjF4hI4LqvbEyWEhd5Kd+qLTN sXkMY6JUZtg2RCxPeSpR1OWhPMxDHpjYspbiqItNRQmXB5R5mIojnXT3+z//HzwXD02IK0g/ OlmRyqkUrEwiEJJm9xwTnJ9jlF7I1V9EpY4XJBqc1qC+KhtAL6eHCZS795dEvd92KJRXaxAg S8tlZDRPALQzI0Ztc1Y+0n43k2iyp1yAyuq0JKr58IxAu1tuPmoesVFoxRGDNifzKGQq2+Oh d/nFfDQz3E2h0iUfpNu1CK5BXDTfysNVO59IbO8fJrG2xcnH7mEtD3eX2ig8UNFE4fY6Df7x phrgMpsL4NcdjQB3DDgBHv3VycNvGwoF2Nnmj/ucu+Td4w+EVxI4WXI6pwq9GitMWmkrJ5Q2 KnPRVULkgHZBAaBpyITD5dHMAuC1jyegxW7Yj4W0mHkPYP/EOu/w2AawdtVMHVgCJgh2bOnA AfsyDDQsTFAHEsG4SDhe+coj+TBRcMPa6mGSCYCOL838AxYxN+H2+hj/sM4fjpmKPOy1n28Y xj2+mLkBR0xfCR0QVYEjjQByynilOi5RHqbgMkLUrFydpkgMiU+RtwHPaH/8usBgz60hwNBA 4i1ianukYj6brs6SDwFIExJf0XSgUSoWJbBZTzhVyiNVmoxTD4FTNCk5KTrzsV0qZhLZVO4x xyk51f8vj/byywF584XP2VrXZ5M+WKJf+Kmtly3sOGtUoxKdyVjiSF5czZ4NDAo2hFc2aCzR 3k+Xko1Tp7MnI0LvTZ29JGVidNZ0mp3l7NV+yw+zI4SxSb9v39m83ov0Rru/nXd+MyVSadT0 LWzUu61dPkePRXVGxq3B4oD7GU1r0XpR53yDhFQnsWHnCJWa/Qfutc5tsAIAAA== 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/