From patchwork Mon Aug 3 04:47:11 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Chen X-Patchwork-Id: 6927291 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 D42C8C05AC for ; Mon, 3 Aug 2015 06:01:28 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0E16F20547 for ; Mon, 3 Aug 2015 06:01:24 +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 53AF820523 for ; Mon, 3 Aug 2015 06:01:20 +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 1ZM8lZ-0000GI-WA; Mon, 03 Aug 2015 05:58:30 +0000 Received: from mail-by2on0130.outbound.protection.outlook.com ([207.46.100.130] helo=na01-by2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZM8l9-0008Oz-K9 for linux-arm-kernel@lists.infradead.org; Mon, 03 Aug 2015 05:58:05 +0000 Received: from CO2PR03CA0013.namprd03.prod.outlook.com (10.141.194.140) by CY1PR0301MB0857.namprd03.prod.outlook.com (10.160.163.151) with Microsoft SMTP Server (TLS) id 15.1.225.19; Mon, 3 Aug 2015 05:57:42 +0000 Received: from BY2FFO11OLC012.protection.gbl (2a01:111:f400:7c0c::142) by CO2PR03CA0013.outlook.office365.com (2a01:111:e400:1414::12) with Microsoft SMTP Server (TLS) id 15.1.225.19 via Frontend Transport; Mon, 3 Aug 2015 05:57:41 +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 BY2FFO11OLC012.mail.protection.outlook.com (10.1.15.23) with Microsoft SMTP Server (TLS) id 15.1.243.9 via Frontend Transport; Mon, 3 Aug 2015 05:57:41 +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 t735vQhb030467; Sun, 2 Aug 2015 22:57:37 -0700 From: Peter Chen To: Subject: [PATCH v2 03/10] usb: chipidea: imx: add stream mode enable for device mode at imx6sl/imx6sx Date: Mon, 3 Aug 2015 12:47:11 +0800 Message-ID: <1438577238-10153-4-git-send-email-peter.chen@freescale.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1438577238-10153-1-git-send-email-peter.chen@freescale.com> References: <1438577238-10153-1-git-send-email-peter.chen@freescale.com> X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11OLC012; 1:mZS1D4l67DppMjpmvM66kLCULfJ2YTnXGBZIdKVDjW1kEUwGut43h95xUWI8+PUCXApiwEzZze/ZewwsjlSVbA01tU1DQNiPcVdQhvjlwE43TlIcxOzVd43RediFHV58+84J1qcpM3tertBshOWzUplWYOOfizG3ICj+64bar3N5nQzb3ma/JWwcEDstW+LMzmEZan2Cb8c9GJNFYAEaIpECD1gbj6TxtrwKz3UIMRiKHy8htwyri2ua3HvViSbMaUromAviznfWDf66oIcf4Sk9tWfaZ7CFQpPjNMDWvw9gUbtEADoS052Q4tl36zBRRBdwrytVjE+5BDWEbHJvCw== X-Forefront-Antispam-Report: CIP:192.88.158.2; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(2980300002)(339900001)(199003)(189002)(46102003)(189998001)(2950100001)(50466002)(48376002)(77096005)(62966003)(36756003)(6806004)(86362001)(5001920100001)(50986999)(76176999)(92566002)(5001960100002)(110136002)(33646002)(106466001)(19580405001)(85426001)(107886002)(2351001)(229853001)(50226001)(87936001)(104016003)(47776003)(77156002)(105606002)(19580395003)(4001430100001); DIR:OUT; SFP:1102; SCL:1; SRVR:CY1PR0301MB0857; H:az84smr01.freescale.net; FPR:; SPF:Fail; MLV:sfv; A:1; MX:1; LANG:en; MIME-Version: 1.0 X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB0857; 2:Y6Y8JVEvc6msG/YlkhFLsFXIl5A/ZQzBx774lRgPkocetRyMHiSmNB61y1fbIwYARIJebO46T2rOWGtaomFshiDFT/zE+OfbkkyipebWaytSBv0lPmsKUynDNndK7rjq40Q1X6BqnlunP3p7vlTk3JIp57AwhV1uHEeFCkoJ6fU=; 3:3hyCHFZxdvmbWoY7tFaxa36y1yR1j41kV75sGMOnVL/uaABohoOA0J2pjG8Yh5ZtAKM8inzFMPc92PuikD1xebxQIBrt48iA+NlrOnbMOyUypTr0BG884TJm0eY36Z9oJwc4iDWWVjNghKn6ozN6yu7AvicDlrAyrJl0YfZtrxhY4KYpG5Q3rbZ6W2gCCeNIResCBkiSdtGcoPUk1BY3qSXdmOWSVHJ9ZWJ5v2S5W6s=; 25:zSJTd23Or34YjR2UxKLowpzMJpePlGnsfqH/ypvtWkNdh9WR9Z+fmhjuFD/ztu+5Wfxbza7/eqeMedj5WtdHJB7slefMAxSTvUTZdQ3CtggDPrjcqN/8OoZQDzbcKti5bWgZrU801H4RXQz/36FGvrLK2L6fxwKYcIMWLJA1uBmGf+EUU0YGfdDEIjpcf//TraqXcUINDkwRoiu/V0Jbu+tFTZDVvaHMDRAZihm79GTJyRpWLud/VFlmQfebBK5n9TiBTy1Auk+F5au+enrieA== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CY1PR0301MB0857; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB0857; 20:xzSMaqRbMgoR3OK+K/pSBAUJYIcirD//UdG6qZATkg60tK5A5fPJ8aPfVrt8SX1nG/0FOWHPhINqxq4SzBqjcczFV1F5ai/aolYpiJznsIVAIYFqnmc5ZedXQx8zLvYr3U/nPoiz6HLE7J/Twx1S/EONwAGG8deenAc/euhpO3TyHJPLQNO+Z/RF9uqocB4iWH1O7ut68KO9c5Pj1qJZ4+e/D71jZ6FP6WbbE+HlChv9bR665DP5Zn/HjkVLlKwXuhZ7D3IdnvvEPGZebAu78FsNLyYMr7OboC15i+98K/NQq3UGvOD9Vt6BesfOc/oxl+x1fytDQ1CawowhVM+ZwNRxn+XOryut8Y5ZgJpTt/Y=; 4:zrI6/bQMBlil+Afvzik8DLVd4GNYwOPpAlZ32/GhWWnnhacA664Pr9qLFnHEBoZO4tTzg67ci/Yis1j6lunxiu4ZJOmJteWB1VlnrjcieUl0j9BZbXrks99sUwlqHx+t05/fPjrzbEIp7+j5U/jmZRdxvu7wgTAtPHf1mWVwFnirMf2MLEprSYurQF/lpxYcVBnhgKLqYr7Ehv5TI210o02hqbimdX1IuzcjgK4133O+DANP/XnJ4f+S12r+hoFAIMsAawscHADV6MhjOqqszffKusC/XeUM8zqxiH6qH8E= 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:CY1PR0301MB0857; BCL:0; PCL:0; RULEID:; SRVR:CY1PR0301MB0857; X-Forefront-PRVS: 0657D528EC X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR0301MB0857; 23:rK8LT6I7XEi+5WRpBM+ymOJ81GNn0ciF3JXfQdu?= =?us-ascii?Q?6afGFYXI+zg9A5fce60XbGD4I9/dOo4kXDNjkBzYizPpU4ghIq19bW9EYXQL?= =?us-ascii?Q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D?= X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB0857; 5:Yy/rxswku9FuY9PcDan7H0pi3nASrO1I5FF6B9W4u/62+wzzx1MspMgBD3stVAncOFZ65DP0R6jTbtTCKZHIQIa898HAAjEfwfuiEVoS5mCzXOdEzkU0aj6iEFpxk3lhHZSxFq9nuA2Ds1K8KdIj0Q==; 24:w7+6wFM2dvG+ZLVrPN9RjS1/9i9iYVHWNSBfvHkQ8dG6OIARuLYezDoRXDJMz6QHPrJGRBjzLq++Um59DjuZ825e6XhY+Bu4Oh4ct+K5H+0=; 20:PJjEbznTIgBx8y1oZNp8sK67j96fnQ3yCzlA8DJ6Bn/05qZ8zN6YrZM7ULtvvyiXfL3UpzUsW4GWU5YyLlK+5w== X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Aug 2015 05:57:41.5359 (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: CY1PR0301MB0857 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150802_225803_962563_CBEF4DC8 X-CRM114-Status: GOOD ( 15.87 ) 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, robh+dt@kernel.org, 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.4 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 =