Message ID | 20171030080020.7780-1-yinbo.zhu@nxp.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id EAAFE6039A for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 30 Oct 2017 08:18:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DA814287B2 for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 30 Oct 2017 08:18:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CE872287BF; Mon, 30 Oct 2017 08:18:58 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 44CED285CE for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 30 Oct 2017 08:18:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=2BnJYfHgrfR1/Rdb7kcjQIOfpuxj3VPu4jzSqd/MPrQ=; b=O4Xkjvz8R5cniZ Y2IbJNfl1EgrkBTzolC4ntcHxrVMv9TBRserad+tvP+azSbTKmHsSMBk+u6bHoXy9HfL+lAk2djGQ q6FdjisRiQ2OgR8GnniLe1cDfOu3hCfZwJdUulx9yp2t5Zt3hjEngn3e/1NRfGpaBonOrg6achZdE hOBzAmhahJQ8tKHHyjJXYjd78qeSMV35X/W+lLphgRRxR2TkLprn9I+3+ShA3xjWfg/7DF8efsvO7 Qdd5fMNPI3ayKcHsTns+yIJt9ZsaMIRUiaBgUsBXl2PaW3Q2CFhNv2TPczbuBuDIYC9/b/lVaSopz 4buaJpgqKoH8DJT5/0XA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1e95HZ-00019G-Th; Mon, 30 Oct 2017 08:18:53 +0000 Received: from mail-cys01nam02on062f.outbound.protection.outlook.com ([2a01:111:f400:fe45::62f] helo=NAM02-CY1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1e95HV-0000zk-Hh for linux-arm-kernel@lists.infradead.org; Mon, 30 Oct 2017 08:18:51 +0000 Received: from BN3PR03CA0059.namprd03.prod.outlook.com (2a01:111:e400:7a4d::19) by SN2PR03MB2367.namprd03.prod.outlook.com (2603:10b6:804:e::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.178.6; Mon, 30 Oct 2017 08:18:27 +0000 Received: from BN1BFFO11FD038.protection.gbl (2a01:111:f400:7c10::1:188) by BN3PR03CA0059.outlook.office365.com (2a01:111:e400:7a4d::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.178.6 via Frontend Transport; Mon, 30 Oct 2017 08:18:27 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.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 BN1BFFO11FD038.mail.protection.outlook.com (10.58.144.101) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.178.5 via Frontend Transport; Mon, 30 Oct 2017 08:18:27 +0000 Received: from titan.ap.freescale.net ([10.192.208.233]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id v9U8INIt015137; Mon, 30 Oct 2017 01:18:24 -0700 From: <yinbo.zhu@nxp.com> To: <linux-devel@gforge.freescale.net> Subject: [PATCH 1/2] mmc: sdhci-of-esdhc: Workaround for reducing the maximum speed on ls1021atwr Date: Mon, 30 Oct 2017 16:00:20 +0800 Message-ID: <20171030080020.7780-1-yinbo.zhu@nxp.com> X-Mailer: git-send-email 2.14.1 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131538251075328050; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(336005)(346002)(39860400002)(39380400002)(376002)(2980300002)(1110001)(1109001)(339900001)(199003)(189002)(53936002)(2906002)(6862004)(356003)(230783001)(86362001)(50466002)(48376002)(305945005)(4326008)(8936002)(50986999)(1076002)(8676002)(104016004)(81166006)(81156014)(36756003)(498600001)(68736007)(86152003)(77096006)(50226002)(6666003)(54906003)(33646002)(16586007)(85426001)(47776003)(2876002)(5003940100001)(8656006)(105606002)(189998001)(106466001)(97736004)(5660300001)(2351001)(316002); DIR:OUT; SFP:1101; SCL:1; SRVR:SN2PR03MB2367; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD038; 1:+BYUNwJIMFONO1JSjvHdnvSyYp+/foKcmgvo3+2nmVVjFN0tSswMnbOMQqzFMgpgCfDygpgIEFqHGjDOutcVssgq9nBQuWsxS/nyTums5oIG7QlXJ95cE4KTqEnkegoB MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: e2a9f8c4-6192-478f-9832-08d51f6ecc2f X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(4534020)(4628075)(201703131517081)(2017052603238); SRVR:SN2PR03MB2367; X-Microsoft-Exchange-Diagnostics: 1; SN2PR03MB2367; 3:WE+BsnPATvFHgmeVWNO2nitlN5J2mNbSin+H+n1hkwR3vaZVC7/kzysuh69E9dD7gXJZx9+G4gGoojIDa6NFqKAYcTRRvecIjA5OjrDVa8dw4ozQew68FnzyOgUT4cGFk2N0au+SfjMoDT/MMpyoD6/3FaVoEQ9C6fMifnCrfYwz++ZBS6Ear/f3kuc7MGdQBcbwNOZ06vNFfswdFPbbI8dwhvK0G9YeQw9BZxTt9qe6YMfl887Trpu04DrqBTm1SEPi9Y+qwPN+1VpaWeZ1s5aye9MxDoXX6ASRVo3Baxz+5veI7j8C963xFGlHyh5n9USQL4c5b7j3kD8dacVutk/K1+YPG3foLeu9mWmvJWU=; 25:WQ6teMQBLPsDMuRLyRwWz9zZszbZKIf5LEOyFU4e9qMdTx21CSx5657mOpaIdR6g8Ox9/rarcNh8jKhBVAoAnTOOi4t3M4r4HY3HHAVJk5pew4pr539nzFmrjB3wdquABalwoniRCRMBz4hIdGalNNAeEsbLgqW7ucvY3D2ZHSYeBAsdUSDB0XRea2jBP/55CBavnFgiBcnc7cjxoUpTbC/OUutHp37e2eFic+oF8jhMmKPmuoaYN7ZpPH1pHIAt2L014LNtRhZO519TXVXy3MbFt+1c7w25HWcwerYMjmzIQTLiZj8bGNNHdV1NxgR9bhrglcNnGRXQrvoUMd4dNw== X-MS-TrafficTypeDiagnostic: SN2PR03MB2367: X-Microsoft-Exchange-Diagnostics: 1; SN2PR03MB2367; 31:vMOpioRFHm/jseCA1z6ITNAu1HVurhQAIbSpkDy0XvZaXHCxIx6i9Tq2SFX+6iRxVAo2RApCyggQhV44BZofFNtBBc1snkrD5+oK6GfUYvpEuqGXbafiZaFlWW+aXiAL2oGCk7k4vU2YNvKfYbP8SbdOCUsYEceUrJXEp/uxd2biz3y6fyGCcAC79ko1Ni7tui9P2dA+/TfSAlOkQ/tfj5gyTeYdIHWDAMpvj33TC0Q=; 4:ZmWys9nEA5RrWDwJMqjC7ZhKrSJFrOpym9KecUHqCPBkvQBmr8BeMmBhebyI+A/odATm6jvcRhhGfOWUGyKDPO38kN7G+sW/TaJIRDhsub/2QiafAZ77bES3G4377nFEIE5oj8TkE+ulF/cCBQP5JxsV0IvuDeRci/UtFVpyj7IS4YltbC+AuY3yJv/9uZlEBC9bjPXlY0LbNRemI9D2sZiWaQay9EkHBdI4q1/yn0ryZ1sei+hU2j1KuaSeyyK8ikbuzQEGQRCJwKdzkm3CmeXgekmaw6NHOyPLPhdX33moXEsS2Qd1pQYq+J/9rbgG X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Microsoft-Antispam-PRVS: <SN2PR03MB23671260912C5063767ABCFAE9590@SN2PR03MB2367.namprd03.prod.outlook.com> X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(2401047)(8121501046)(5005006)(100000703101)(100105400095)(93006095)(93001095)(10201501046)(3002001)(3231020)(6055026)(6096035)(20161123563025)(20161123556025)(201703131430075)(201703131433075)(201703131448075)(201703161259150)(201703151042153)(20161123561025)(20161123565025)(20161123559100)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:SN2PR03MB2367; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:SN2PR03MB2367; X-Forefront-PRVS: 0476D4AB88 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN2PR03MB2367; 23:SpOYV3PDxYXzedl2vYb7Vehr9RXwMHWTo3F68Kh0I?= =?us-ascii?Q?5nzoEFWz80tHsLDRr6QPeAvBI5oTIqtX4phwnNg+zAgadNeaZjbvIZ5V5MoE?= =?us-ascii?Q?5Te0k/r+KaFXJL5OZTs+lZaY6dCZOaLaXZj9yxmW78s6FmnzRcHDTDPRqJcq?= =?us-ascii?Q?NoEApcu5jMluVLx2FPdeLscLwDxQSxBakMfQ7Z6RdK+wg3F469knyr94ej6F?= =?us-ascii?Q?5CABQz0rHOcG6G4MBTEkP+/UOwp3h+AJvfVuaEXqVUIya9ro6zzcQG3mNAYP?= =?us-ascii?Q?Wi2avyCscuyKZGx/b4D6AjAsgnezL5Kkxh4SNgShEChO9ckfESoOd5GA0Eli?= =?us-ascii?Q?iER7OhIPPxPzyjTq3ZxPdGrjh+UxCSRwC0xdWB9itbVwdxuO54Gi21Jeet8f?= =?us-ascii?Q?YmEFTB8SQBR+TrjV5bq8hUdDrTg7fZ35Rfg26CT8YUl+02uzovWT77aYnbwn?= =?us-ascii?Q?RqD4FbssBy0XEV+UiO9pXlPvJaL+HrmizX15sv2wVyNSO4guC1xre4+65T6g?= =?us-ascii?Q?+f6OKgxPMn56caJZXPbKwGUn4wV8PPK31o351V0NYX3YwPcOlNTOBRZwlily?= =?us-ascii?Q?3cLa9tb8muo1/6RIhszXgQMcDhYFpdjrBwP2Xbl/vHqrh6Wiuk4vtSKLJ8xo?= =?us-ascii?Q?Df6bEFGik4C2noLkFdoWXzqyW619z3GzigVArxCnaexW3U9pONpjK2Y8VCeA?= =?us-ascii?Q?tQNXDOYXUREyYdUaGM1bJUy+gBBp8z8UaFQnwwl324ab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TXnVaiLer90blCcL45QlAzAVTOvJ2jjEqBiU4yf1iIhjElozn/3p0dQK//U4I9jTg0jXKWzflbCNEGSNs=; 24:+JCzIesv2CwElvP5Ivauufj3zb9YoEzSSUoEoY3s6ym+I9+wMXapxi7KvlUbC0QJwOJzJ+qNHIhTY39Bo65BRM1kH8vxX2HglqPx9/ATUPc=; 7:9ovhgUdnpRPT1vxEFZcshrUyv7M73UoIeIsg51sDApDu3ksuL9jB5gj2qd5I2FDLuLAKvPAuyhtCTSk6VUdlJm2hkD3vopp3sS1pncWu0L7oOPbw+HEVM37PzakbG8Z82ur+APm4U+zsFh6EXKxHrM8GolWh5z8ljUre34+B3JXQs2w5XrIRSM6B++++3n5c54gUEMBqAxvtH5Cr8MlBkpoyGi/QBU64azV5a8HjBKuUwAXWi3qf06cLf3Gz9cnP SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Oct 2017 08:18:27.3144 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e2a9f8c4-6192-478f-9832-08d51f6ecc2f X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN2PR03MB2367 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171030_011849_703346_997A4707 X-CRM114-Status: GOOD ( 13.37 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 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> Cc: "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" <devicetree@vger.kernel.org>, Mathias Nyman <mathias.nyman@intel.com>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, "open list:DESIGNWARE USB3 DRD IP DRIVER" <linux-usb@vger.kernel.org>, open list <linux-kernel@vger.kernel.org>, "yinbo.zhu" <yinbo.zhu@nxp.com>, "moderated list:ARM PORT" <linux-arm-kernel@lists.infradead.org> 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-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/mmc/host/sdhci-of-esdhc.c b/drivers/mmc/host/sdhci-of-esdhc.c index d96a057a7db8..aa360ff1fc35 100644 --- a/drivers/mmc/host/sdhci-of-esdhc.c +++ b/drivers/mmc/host/sdhci-of-esdhc.c @@ -498,6 +498,12 @@ static void esdhc_of_set_clock(struct sdhci_host *host, unsigned int clock) clock -= 5000000; } + /* Workaround to reduce the clock frequency for ls1021a esdhc */ + if (of_find_compatible_node(NULL, NULL, "fsl,ls1021a")) { + if (clock == 50000000) + clock = 46500000; + } + temp = sdhci_readl(host, ESDHC_SYSTEM_CONTROL); temp &= ~(ESDHC_CLOCK_SDCLKEN | ESDHC_CLOCK_IPGEN | ESDHC_CLOCK_HCKEN | ESDHC_CLOCK_PEREN | ESDHC_CLOCK_MASK);