Message ID | 1433926244-29244-6-git-send-email-haibo.chen@freescale.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 7FF029F3D1 for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 10 Jun 2015 08:56:48 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A6C882058C for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 10 Jun 2015 08:56:47 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9AE8420551 for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 10 Jun 2015 08:56:46 +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 1Z2blk-00020c-PJ; Wed, 10 Jun 2015 08:53:56 +0000 Received: from merlin.infradead.org ([2001:4978:20e::2]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Z2bgz-00071u-GJ for linux-arm-kernel@bombadil.infradead.org; Wed, 10 Jun 2015 08:49:01 +0000 Received: from mail-by2on0115.outbound.protection.outlook.com ([207.46.100.115] helo=na01-by2-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Z2bgx-0005s9-4D for linux-arm-kernel@lists.infradead.org; Wed, 10 Jun 2015 08:48:59 +0000 Received: from BY2PR03CA002.namprd03.prod.outlook.com (10.255.93.19) by BN3PR03MB1414.namprd03.prod.outlook.com (10.163.34.21) with Microsoft SMTP Server (TLS) id 15.1.184.17; Wed, 10 Jun 2015 08:48:30 +0000 Received: from BY2FFO11FD023.protection.gbl (10.255.93.4) by BY2PR03CA002.outlook.office365.com (10.255.93.19) with Microsoft SMTP Server (TLS) id 15.1.190.14 via Frontend Transport; Wed, 10 Jun 2015 08:48:29 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=freescale.com; lists.infradead.org; dkim=none (message not signed) header.d=none; Received-SPF: Fail (protection.outlook.com: domain of freescale.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BY2FFO11FD023.mail.protection.outlook.com (10.1.15.212) with Microsoft SMTP Server (TLS) id 15.1.190.9 via Frontend Transport; Wed, 10 Jun 2015 08:48:29 +0000 Received: from b51421-server.ap.freescale.net (b51421-server.ap.freescale.net [10.193.102.119]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id t5A8mAXe027809; Wed, 10 Jun 2015 01:48:26 -0700 From: Haibo Chen <haibo.chen@freescale.com> To: <linux-mmc@vger.kernel.org> Subject: [PATCH 5/6] mmc: sdhci-esdhc-imx: set back the burst_length_enable bit to 1 Date: Wed, 10 Jun 2015 16:50:43 +0800 Message-ID: <1433926244-29244-6-git-send-email-haibo.chen@freescale.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1433926244-29244-1-git-send-email-haibo.chen@freescale.com> References: <1433926244-29244-1-git-send-email-haibo.chen@freescale.com> X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD023; 1:350uJ1eEs2z/WBa4lFWEQuNOWxFVhCtLz4CN5boTrkKSEDuzSnAGR3Oov12BInf8F3mUuCjLlHC68WcKTmQ2uc25aYK7NNFREHvNb9xHfbZ9Xk/TDTvSLM2Ds1uajis5nZXs2dXY57/itMTsfF+b0JW0TBndr2EDhFlR5ZT5SpRcgt+UZjD0enWvUirjnHK73Lr5reD526/JeR9c7PN+JdbCN9X8sA8ubouLDrZ0hq9ctLhwNPCb1yaZjoWacL4vVdXvLeYPMdRdXdXszWHYaFjR4ggDinNlfIlYFXPMVTr3yJQrqHeXPpPh7jSy648fKNv4WjgpnFGBrqMHrY3u8Q== X-Forefront-Antispam-Report: CIP:192.88.168.50; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(339900001)(189002)(199003)(6806004)(46102003)(2351001)(5001960100002)(575784001)(104016003)(229853001)(86362001)(106466001)(2950100001)(87936001)(33646002)(50226001)(77096005)(110136002)(189998001)(77156002)(36756003)(92566002)(47776003)(105606002)(48376002)(230783001)(50986999)(50466002)(19580405001)(76176999)(62966003)(19580395003); DIR:OUT; SFP:1102; SCL:1; SRVR:BN3PR03MB1414; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; MLV:sfv; MX:1; A:1; LANG:en; MIME-Version: 1.0 X-Microsoft-Exchange-Diagnostics: 1; BN3PR03MB1414; 2:a7ewV6gmd2Vj9FqTu7dhzMXgY1rgJlYA+PNSyqqKvvRUaCLIY6EQnPTBVKzcKbBl; 2:ndqKI/lBi/Kbshyl8YBx1gtHDSvZLoDGJcYGE/cutfM0iPH1Ux16ug0WdvhWxcoeRgpf2DQKvHTL+6uaZwpkpVVyr/YNk/y6zO/WgVMSIhuSYqGKRWklDUrfYYSzyWqk7qTACrr1kO4ZovRX7hBIKR1vhqDpbhWyDG/CLk/UREa/DgyyzrU4S0cmlTN2NV8oWdOViMmP170ExUZP6CHx+dGa+daCDyy2CUcEktc/lzs=; 6:5uQkSeoyoiN3WdWzVwzQ2G5pqs5cEiwsE/upgvDkQPCi/dfDm8in3VE8Rs1RJtMovZyIpGLGw57dnn4ocyQHY8X+eHeLRLsQ235KdjUgNOVzwSO7Gv3XaxU72K+D6/YYpOgSdF3MJN6sRKy/YnAja6V2SatMPAVmEqpFlgZj8mbVd9+pgSQiLzkuWCPFadIEC+LiDzXRGJynNWCdHml5PNudzekHlgU17eTImdBKASlp3jEmo95OGQ2EE6Yl37akiy5NLYI/oEHeV6bhi5YLkn0oJKxEAR2LScxCbbpO0d72kPArtH+HfDDm3hAAsepSi+3i3CSZDQ26ZC1NtcJnKg==; 3:VcPcYSd4NIqvU1rM/hPjVaGAtfpIXqTA+sTTpu4iaQ/s5LXdoOfwsN9Gl5xOs3ZuelgQzPI95+dZakjkCzYdQkdFTWXH+gDSMUm32L2QydQrCMpfBoHY3oq4OHCiW8qjI8a5rZAsBN56aTfpQCdTPLAcKJJ6zi5/W5Pjj+bojQogKtWYXct0FWTaln7M7lxRmMP5v4EkjLD3ByFYxX/t33fr/qt7GDr3xbJWMv1bSHhnIik30oQDE3TB8XGNvA1+Gcqa2Pzf/p18L0KD89KKNhqM5dyTGhdEfZo623GHIQMwOMHr/aFa9Idz/3aJ7yBp X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BN3PR03MB1414; X-Microsoft-Antispam-PRVS: <BN3PR03MB1414737B636DED8E2D9B28BE9ABD0@BN3PR03MB1414.namprd03.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(5005006)(520003)(3002001); SRVR:BN3PR03MB1414; BCL:0; PCL:0; RULEID:; SRVR:BN3PR03MB1414; X-Forefront-PRVS: 06036BD506 X-Microsoft-Exchange-Diagnostics: 1; BN3PR03MB1414; 9:aEbR/Wj73mAv+LfSHyAEG5UwoPGtVfJmhA7gWiLaz46qINhycxIEgl1NfstCxdVVzPEnPZvMqZKDsMdxGxuwIw0pGrQZZRIB2ZwKwd0Ten2D0HKzRGRhqeJ8ue05DU5tGdgvM8qj5ewcl9AXajQwunJKnJ0BEAf/PmosdBRBRaH2xqjFlqV4d1Qoj2kMETq+yHI0UFBBtOSUiaTB2E7D2NHhFjkVP8ltT1qi0QJfYfhD0/zJJBla344M4LVsnG0yZfkzYbjyXsHXfzbnwGKM7qeHO04bGOCa6e3De4ucOTcNUT48klX0nXIl7j+F/tOhFV7N46sCaSg4VdoU1J7TiZvPKeByBYE/n0sXz5N+H7Al/WGZJT7oWUY/YWa5oTcZatDu6Q8HwEdh41+8BM77TQVhZAehM6klzOk1Pn73WpsVkVAuMtk6ECMUba41nGaWfxx4JnnhF8qBdDiz7dW3SWOjAr0ixRew/tQbdCEvtMKy/4Wk+m77s8BeEAja110GKnL+CGpKRZwFdCfE31XnHDsPD539q/ZQ8WrdBPGehgnRYwMT4WC3fNJbDl5ebxtLgu2H31kQ8aH2/4WcMCrGFh/hvnHxhXeCGQBg/W/yXRhTqwDUgqis8CwBmzUJtFvj8OKmgeGLDyaR5SLJy5w6v77kdkKvIxX1qFkh3p6FP+4URz8YOpPw939GzPkrQYJTiVzd5J/EMdshfXAhvQY8r/hzZMszixg6iMkfBPHnJ1KAI26fNleUaPkXKA88ra6V79yS/uHcB1I58KxrqzCmKtJwQKpxndkiIbRq7IbWyJPzsgt17VfHCKqDZRw2uwmTElilZNO+ZF3jYsd9XkDAQjSzx5vIqH+S0JfSaE5I1TjRN8DsKvPSZa2N5u1utuxf X-Microsoft-Exchange-Diagnostics: 1; BN3PR03MB1414; 3:yLNauDdCALTxAfV8ShCT6ondddmRikMEZ2rBTAl5pYnawR4KafuINKnDOX8fJy30v6QQ/o/j0JeR7MprYVVxtVHloq0wXxhiJF55paDZhDPFN014w6G8Q5D8bdlTMwUUvVB1zj7iFYc+fQ7ZJc3kuA==; 10:Ho4528E3Es9pRJxW88EaO/VkfG6WHgA7V+Mq/MYwxDBMPObxHi/dbt8+FbrI7syqkSGFnfSC3Q8yF0X1UeDO2KR9X6cMEQdPvLak2rkHzdI=; 6:cpB4ZhVDXicBkbYAhWYH5Nw7JpUHQxXz/wkXwvUBIhCO4dTz4aQniV+GaX80AR+5 X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Jun 2015 08:48:29.3722 (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.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR03MB1414 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150610_044859_446339_385B8DFA X-CRM114-Status: UNSURE ( 9.39 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -3.0 (---) Cc: aisheng.dong@freescale.com, ulf.hansson@linaro.org, haibo.chen@freescale.com, chris@printf.net, shawn.guo@linaro.org, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_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 |
diff --git a/drivers/mmc/host/sdhci-esdhc-imx.c b/drivers/mmc/host/sdhci-esdhc-imx.c index 1f0e0d9..e6a1995 100644 --- a/drivers/mmc/host/sdhci-esdhc-imx.c +++ b/drivers/mmc/host/sdhci-esdhc-imx.c @@ -32,6 +32,7 @@ #include "sdhci-esdhc.h" #define ESDHC_CTRL_D3CD 0x08 +#define ESDHC_BURST_LEN_EN_INCR (1 << 27) /* VENDOR SPEC register */ #define ESDHC_VENDOR_SPEC 0xc0 #define ESDHC_VENDOR_SPEC_SDIO_QUIRK (1 << 1) @@ -1088,6 +1089,16 @@ static int sdhci_esdhc_imx_probe(struct platform_device *pdev) host->quirks2 |= SDHCI_QUIRK2_PRESET_VALUE_BROKEN; host->mmc->caps |= MMC_CAP_1_8V_DDR; + /* + * ROM code will change the burst_length_enable setting to + * zero if this usdhc is choosed to boot system. Change it + * back here, otherwise it will impact the performance a + * lot if the burst length is 16. + */ + writel(readl(host->ioaddr + SDHCI_HOST_CONTROL) + | ESDHC_BURST_LEN_EN_INCR, + host->ioaddr + SDHCI_HOST_CONTROL); + if (!(imx_data->socdata->flags & ESDHC_FLAG_HS200)) host->quirks2 |= SDHCI_QUIRK2_BROKEN_HS200;
Currently we find that if a usdhc is choosed to boot system, then ROM code will set the burst length enable bit of this usdhc as 0. This will make performance drop a lot if this usdhc's burst length is 16. So this patch set back the burst_length_enable bit as 1, which is the default value, and means burst length is enabled for INCR. Signed-off-by: Haibo Chen <haibo.chen@freescale.com> --- drivers/mmc/host/sdhci-esdhc-imx.c | 11 +++++++++++ 1 file changed, 11 insertions(+)