From patchwork Fri Aug 7 07:15:40 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Chen X-Patchwork-Id: 6966501 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 71514C05AC for ; Fri, 7 Aug 2015 08:30:19 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A0B0D2065E for ; Fri, 7 Aug 2015 08:30:18 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C802F20658 for ; Fri, 7 Aug 2015 08:30:17 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZNczm-0003r1-2v; Fri, 07 Aug 2015 08:27:18 +0000 Received: from mail-by2on0125.outbound.protection.outlook.com ([207.46.100.125] helo=na01-by2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZNczJ-0003Vb-H2 for linux-arm-kernel@lists.infradead.org; Fri, 07 Aug 2015 08:26:51 +0000 Received: from BLUPR0301CA0029.namprd03.prod.outlook.com (10.162.113.167) by CY1PR0301MB1228.namprd03.prod.outlook.com (10.161.212.150) with Microsoft SMTP Server (TLS) id 15.1.225.19; Fri, 7 Aug 2015 08:26:26 +0000 Received: from BN1BFFO11FD002.protection.gbl (2a01:111:f400:7c10::1:134) by BLUPR0301CA0029.outlook.office365.com (2a01:111:e400:5259::39) with Microsoft SMTP Server (TLS) id 15.1.225.19 via Frontend Transport; Fri, 7 Aug 2015 08:26:26 +0000 Authentication-Results: spf=fail (sender IP is 192.88.158.2) smtp.mailfrom=freescale.com; freescale.mail.onmicrosoft.com; dkim=none (message not signed) header.d=none; Received-SPF: Fail (protection.outlook.com: domain of freescale.com does not designate 192.88.158.2 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.158.2; helo=az84smr01.freescale.net; Received: from az84smr01.freescale.net (192.88.158.2) by BN1BFFO11FD002.mail.protection.outlook.com (10.58.144.65) with Microsoft SMTP Server (TLS) id 15.1.243.9 via Frontend Transport; Fri, 7 Aug 2015 08:26:25 +0000 Received: from shlinux2.ap.freescale.net (shlinux2.ap.freescale.net [10.192.224.44]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id t778Q8l4019852; Fri, 7 Aug 2015 01:26:22 -0700 From: Peter Chen To: , Subject: [PATCH v3 03/10] usb: chipidea: imx: add stream mode enable for device mode at imx6sl/imx6sx Date: Fri, 7 Aug 2015 15:15:40 +0800 Message-ID: <1438931747-25209-4-git-send-email-peter.chen@freescale.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1438931747-25209-1-git-send-email-peter.chen@freescale.com> References: <1438931747-25209-1-git-send-email-peter.chen@freescale.com> X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD002; 1:vRkKGuNFkn/F3O6UCjZU82NZauu9tjJZjJSbm+rs3DPLgZzVzXD4jeEnhI07LXoDwydOtL1qZH2d0h/TKlSO1PUodSrM3H2SU4XYo3cNaHX8TiQ8Cc0lhObW24XzW8uuAA1EKl9b7m/w33hyG9+TZg8lILXZegUj5Y2XczxaAZuDz8vU5MyUHxW4k1sVsrEH7m7K0TT5VRH2cOm+G3e22kYw3Am8jSXjTF7OLtw/cxbpVAD1BJSA75jJAz1FMnHo+a4dFujw+yEvQvDyCkxS7yZNRamo6ZVMoGCcar8Aq3CzAUJr9MVcaUX4Mz2eJtiS01/hf15OhSEPip9RVZUYzQ== X-Forefront-Antispam-Report: CIP:192.88.158.2; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(2980300002)(339900001)(189002)(199003)(36756003)(62966003)(47776003)(77156002)(69596002)(48376002)(107886002)(2950100001)(50466002)(68736005)(50986999)(76176999)(77096005)(92566002)(5003940100001)(85426001)(46102003)(81156007)(97736004)(229853001)(5001830100001)(189998001)(33646002)(4001540100001)(5001860100001)(5001770100001)(19580405001)(19580395003)(105606002)(5001960100002)(104016003)(106466001)(6806004)(86362001)(87936001)(64706001)(50226001)(32563001)(4001430100001); DIR:OUT; SFP:1102; SCL:1; SRVR:CY1PR0301MB1228; H:az84smr01.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; MIME-Version: 1.0 X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB1228; 2:Z/J6Xgj1kb/NvbseEjgMb7w01aj5MT6ZklWgFb6WvuxhpBNORbwalNe77ZsmRy7wfpTp+2qZub82SLGpldQfwC4PgfYOsgA3bHO7XU2rxayN2y0s9vrFHqsjSrilP6ja1YuPx861V4lswCVwXYvWuUBMcV4NBNBDY18sUBYvAsU=; 3:MtkJOO/SAubfAd3hoU8YDUShDBRX67rLtMCctKtBqbtsX+5S73W9fP/elznXz1vZKk4lIxdm9xodU49XxxuNYS03h6eb+zb4OvIW27S/SLGCZ1hE6CxRYMKK+mgWvsyvt9q9m4KeFvzPJ4R0PXbtsPbrJoJwNv+84LQV8DnHNMmqNe0m7IoFOfwHuHyPcx3ovpEY+dZIRVWnaSayIh+szjUyqEy0YV/sNKUH7NlnED4=; 25:B1kGNVCIxKnCLXWJMTwqkVZ6R/vr/1i/7nXI0iRfy1PnBbQGt3sTp7AG7nHMDyZBoW18K3bjeLqVuI1bWhJnoIPlze6Qz8s/sUvO3Z03RQxk1LNBBszccMwliVc6BIcmOG6InVnjQploydm/jGrmvRFywEf1Fh7/I4K48VYiLN4Xo9Hr1ZNVU7u3OPDZ1CxVfqoIuedeqBlbXQvWfgdCVtff+bPAOggxwA6TT/QFlBSPxGsDPYes6hHxJX9FXHKbIWU6DtaSO3vO925/L/s90w== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CY1PR0301MB1228; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB1228; 20:vbrEW8l310fiAFtLikkcX3Tr2m7DE13jGDw0ybT0gxmriTbbvYFHsPGC9ROOj/N904z7ovCCFGSzr3y+TuMz6YNniczHzEpLOKuCgtW60HbqBFfjULaqlxBqwhct5f9x9xkKzuSKuXjVjnmeiNBx8TIUDkiSkDahJ2opYAZ2Ugargq7joHMXDwKzxXJloxKc8Yv6LizgvyDafSp3ovMvYNV22grl9dK4YWeqiFSxU+XKGhiu7QmTFVqQDKjagGe/GgbYf0fuj/Wa23PVHA7mq2KiZR84M6mz4VYLXCM0A15W8rLMZv/VGt3RUpZ3chblWTzmFxZyK5yyZomDN6iO0os3bk9qk/GM14s0vbdKjis=; 4:onSKjXsboJ8JQFftKyHBBzkbRhaI3Utq+cNHd52gb2euJHBH2kznRADrexfAES8G/NnDFeMmrHmECMTN//ZAGxxSNuNUxunHU/rDOZoS7n07XRWX2N7bB6yv6+PXvFfeMFlm4o4eUMyBO8pHfovXqjvbtpIJBt2YkpjJ8f+3lU1fbu/fGAMInGQy8lytaTVi40uAVXWTr/xksjKx7C55+/hf7A2k0UyeJ7pMm8Zut9qLeNkigj7v2Z+E0aHrHIkODgeYyv3+ex6RSS5XhkfD+IQUIyZlSC1fNawRyDurEvc= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(5005006)(3002001); SRVR:CY1PR0301MB1228; BCL:0; PCL:0; RULEID:; SRVR:CY1PR0301MB1228; X-Forefront-PRVS: 066153096A X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR0301MB1228; 23:kN0zPGxXuxeNYEEHSZD7c5HLK8WGDjcN1XLs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zcNhSS3V8y1UDvi/TmSvyNVniEbceTDcgLVCny4U34?= =?us-ascii?Q?ElpqVBD1pvwbjPTWYH6+WVTxsONcrwxRW2Popjv/mOG0GofpcyKYjNO5+HRp?= =?us-ascii?Q?JR6uXjlT1UtYwJAOtTxQ4ADqg5UOGHsTWM1CI+mL48/FYut2Xu7IdkY74nru?= =?us-ascii?Q?ujphzUzt0Xjrh4Sj51n2Zhrp2QEOM5pQJjRkxrY5tni4SApBkZyIOTWCC0q2?= =?us-ascii?Q?3RMv/5P7TiTyyWObbqmE8wPRNAarE6Spy5vV1WHLPErRsFPsG5ekqcrDiqSz?= =?us-ascii?Q?IAhzSllqZYjGODRk=3D?= X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB1228; 5:CGRa8alxmbqycsb/69ixvOXnmV2jRGb1jL0t+/GlL/zJvWvqPmrZ7iGB2EKzP8zJCV+oZZwPJhf9a28U4jzC4d2gmXka3R29UCmE2CJLPyBM12fz2Hrb1evInavrtoYH7ritE+Svn1UyvhjEUaZSeA==; 24:mso0F7KaKf2EsTLLzaVAxN8r4Gpk0RPADgUFbPvqn6P9WwFT3Tx1YodpMOElgHNButym8x8VbS4+7O37PLFlu2rGbfcHAxS4w6hP8Gy0PTU=; 20:DLM2j3nZ7YTamqutSMqZYVIGGxDs6gK1B8gY6S3gDsLevSg97m5aC2O/TBSKBWhCSuzj3T7SlecpTnsg4He5yA== X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Aug 2015 08:26:25.9961 (UTC) X-MS-Exchange-CrossTenant-Id: 710a03f5-10f6-4d38-9ff4-a80b81da590d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=710a03f5-10f6-4d38-9ff4-a80b81da590d; Ip=[192.88.158.2]; Helo=[az84smr01.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR0301MB1228 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150807_012649_850077_C669CE4C X-CRM114-Status: GOOD ( 13.89 ) X-Spam-Score: -1.9 (-) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, linux-usb@vger.kernel.org, pawel.moll@arm.com, gregkh@linuxfoundation.org, s.hauer@pengutronix.de, jun.li@freescale.com, Peter Chen , kernel@pengutronix.de, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.3 required=5.0 tests=BAD_ENC_HEADER,BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Stream mode enable is known for better performance, this stream mode enable patch has been passed with stress tests at device mode for imx6sl and imx6sx, and no issue is found. Signed-off-by: Peter Chen --- drivers/usb/chipidea/ci_hdrc_imx.c | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/drivers/usb/chipidea/ci_hdrc_imx.c b/drivers/usb/chipidea/ci_hdrc_imx.c index 6d2a85a..3f41679 100644 --- a/drivers/usb/chipidea/ci_hdrc_imx.c +++ b/drivers/usb/chipidea/ci_hdrc_imx.c @@ -29,26 +29,31 @@ struct ci_hdrc_imx_platform_flag { }; static const struct ci_hdrc_imx_platform_flag imx27_usb_data = { + CI_HDRC_DISABLE_STREAMING, }; static const struct ci_hdrc_imx_platform_flag imx28_usb_data = { .flags = CI_HDRC_IMX28_WRITE_FIX | - CI_HDRC_TURN_VBUS_EARLY_ON, + CI_HDRC_TURN_VBUS_EARLY_ON | + CI_HDRC_DISABLE_STREAMING, }; static const struct ci_hdrc_imx_platform_flag imx6q_usb_data = { .flags = CI_HDRC_SUPPORTS_RUNTIME_PM | - CI_HDRC_TURN_VBUS_EARLY_ON, + CI_HDRC_TURN_VBUS_EARLY_ON | + CI_HDRC_DISABLE_STREAMING, }; static const struct ci_hdrc_imx_platform_flag imx6sl_usb_data = { .flags = CI_HDRC_SUPPORTS_RUNTIME_PM | - CI_HDRC_TURN_VBUS_EARLY_ON, + CI_HDRC_TURN_VBUS_EARLY_ON | + CI_HDRC_DISABLE_HOST_STREAMING, }; static const struct ci_hdrc_imx_platform_flag imx6sx_usb_data = { .flags = CI_HDRC_SUPPORTS_RUNTIME_PM | - CI_HDRC_TURN_VBUS_EARLY_ON, + CI_HDRC_TURN_VBUS_EARLY_ON | + CI_HDRC_DISABLE_HOST_STREAMING, }; static const struct of_device_id ci_hdrc_imx_dt_ids[] = { @@ -126,8 +131,7 @@ static int ci_hdrc_imx_probe(struct platform_device *pdev) struct ci_hdrc_platform_data pdata = { .name = dev_name(&pdev->dev), .capoffset = DEF_CAPOFFSET, - .flags = CI_HDRC_DISABLE_STREAMING | - CI_HDRC_SET_NON_ZERO_TTHA, + .flags = CI_HDRC_SET_NON_ZERO_TTHA, }; int ret; const struct of_device_id *of_id =