Message ID | 20171030071858.46132-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 9EFB76039A for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 30 Oct 2017 07:37:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8F9102874C for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 30 Oct 2017 07:37:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 82EED287AA; Mon, 30 Oct 2017 07:37:37 +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 E94602874C for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 30 Oct 2017 07:37:36 +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=WN47cOF8ZNq69Q dfzquKYwyj6PUUL4x5OgFkmPmHb+efrYYOL//RVLQIhCVqOpOePPbQ/P8kVqn1k650Tog+9Xuzyq2 I83q99Et6SFsnmAWitWg5b3eBO5DvmzBkQKqgAs90sqJRnrgZuDbGCmssHnl1YyGaA8YztoQGSV1L Xxk9FNgCKDjWBwDdJ27uInwqyAmeujOFyQuNX3a7VJaBOXOx9a/Fk337mR5wb2/Y9HmPF65YrcEYJ oo/hyJUTnCBELCJUtMRWLNoHoDkfpLVSlf8KewCxg3JHWdJvAe3SF1uO/NSanu0bmugq146qYQn+T yn+07ikE+8ykhzlsQV+Q==; 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 1e94dc-0006WA-Ax; Mon, 30 Oct 2017 07:37:36 +0000 Received: from mail-bl2nam02on0625.outbound.protection.outlook.com ([2a01:111:f400:fe46::625] helo=NAM02-BL2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1e94dX-0006Nr-Rw for linux-arm-kernel@lists.infradead.org; Mon, 30 Oct 2017 07:37:33 +0000 Received: from BN6PR03CA0013.namprd03.prod.outlook.com (10.168.230.151) by CO2PR03MB2357.namprd03.prod.outlook.com (10.166.93.17) 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 07:37:06 +0000 Received: from BY2FFO11OLC009.protection.gbl (2a01:111:f400:7c0c::110) by BN6PR03CA0013.outlook.office365.com (2603:10b6:404:23::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.156.4 via Frontend Transport; Mon, 30 Oct 2017 07:37:05 +0000 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 BY2FFO11OLC009.mail.protection.outlook.com (10.1.15.0) 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 07:37:05 +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 v9U7b1lB000728; Mon, 30 Oct 2017 00:37:01 -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 15:18:58 +0800 Message-ID: <20171030071858.46132-1-yinbo.zhu@nxp.com> X-Mailer: git-send-email 2.14.1 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131538226256292258; (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)(230783001)(104016004)(77096006)(8676002)(81166006)(81156014)(68736007)(189998001)(97736004)(8936002)(1076002)(50226002)(47776003)(6862004)(4326008)(2876002)(8656006)(5003940100001)(48376002)(86362001)(106466001)(105606002)(356003)(5660300001)(33646002)(36756003)(86152003)(6666003)(2351001)(16586007)(54906003)(305945005)(2906002)(498600001)(316002)(53936002)(50986999)(50466002); DIR:OUT; SFP:1101; SCL:1; SRVR:CO2PR03MB2357; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11OLC009; 1:IUYqM7TBCCAKdzuW3cAmNP9EaK2fgV9+B+6vShFVqMHUF2v8/svOmdSQnnpsegKRwNX25c+Ysep92bMF56jasq3Y+q/+Y143ZJlFiV+q0Yy2hoAaBwAtcgJH0PEDUZBW MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: b4bb1c4f-f8cc-4fdf-bd54-08d51f6904c5 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(4534020)(4628075)(201703131517081)(2017052603238); SRVR:CO2PR03MB2357; X-Microsoft-Exchange-Diagnostics: 1; CO2PR03MB2357; 3:Bh91yEitUmjPCYpcnrWinVxGH4a0lXa4j+wUOAs9l5pgoqfqNDbWhlbzZDq9QctG6if6G8qid3WZtAtAk7zvLFYNHak1KQYQSMP51In28WcsFZCiFveu0PbmAaZaJUd2YTgsHQFqNjK4rczaW0Uj76BGU0ZRf5Q9aT9uHXIk1IRMQMh1tD7eUIco0MTl/FOHhMtgleje3kVFz4C0Qi4QncSwMnpONSaoYjZDxAdtiKCNNKACCSIqnKalOlkG3KFfDlRY97jQ9IDuuUL2LargojeDxCf2HnxvQ0R85g7N7j05P0my76glCn8ZDGW2kQad0BDDCIq3Hz6pu5ogpow9qCYIVHQfTgDABNeV66ZVr8U=; 25:E6vlhn7dLgaaS2eKSZryerPfv0zS4jc+imp+L1W/FZExHY4rPqSuXaQiyqAHZlrJg9c4nEEuVObmTzvExnduTdqe1tzyI5CBem+Q7cuTH1t4oSixu+ODejlPMXe7BBBUEzIr9jNDTvi+qGZW7gwnJuBtSZ+3q8CtC+Rewod//mI8S0Pmkiayqw67T8Fj6wyBSK1/IyXnmkh901rWJp16/UMpy8jP5TYMXNbIUcrEQLQIWkBCPl8LaI61d+Yl+q6pdVugPNlwih8pIgjf/swJilEvfomo1A9V8wbAE8abQPpw70tOgdsfLouHaaqUUrBupm+lYDu567G277ZSQfsxfg== X-MS-TrafficTypeDiagnostic: CO2PR03MB2357: X-Microsoft-Exchange-Diagnostics: 1; CO2PR03MB2357; 31:6k9zTgClks4Wn7qhWBkVMJG33yqUF7zLQqK+CglZGj8lHij5g+OUYW7AraSqGKBgfRYMKkp1ospR5+wZ5oKTi27GIf4PugeLhet+10fs2JtFxSUO5MI/Jlc2b33nQQMF1TxzQq1LX+2SgdJfJ9sbPUCClZnmaAq0fWVoII7jUvt+P2UAjPi+q2mTxuiRURNzmiUFDxL7MebYAE9uZ0I11town1ItbZS3392hu2to2oQ=; 4:g3Bq/8pnePQmw6zm+tZPln+fouqak8UdD0wSZ+THM1+tMmzuBUgauaLB552SYi4xjY8v/ychK2lR3O+xdZ8dTD78fGnGDkcWSqeo2GitX2+PAxvmVunu1xNBqvkZ5V61e18C7JRxwdFNfLTSQdC61y0uQPlk+cAfyLIHQ8o7oMitYDCJpUa/WTRMWMiPvsSyTw97ypD6mhFdVe6d2cAgUVqnsljc9oankuNubUUdQxif75iilM29LGj0cMXqBjMXpLJsNwf47ZadSc2ESU3ZSykkGUWyW/2mL5+aa8lmUH4JXoPkIRNsxqU+/8c4/Qlv X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Microsoft-Antispam-PRVS: <CO2PR03MB23574E1BFBD908572D77D393E9590@CO2PR03MB2357.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)(93006095)(93001095)(3231020)(3002001)(100000703101)(100105400095)(10201501046)(6055026)(6096035)(20161123559100)(201703131430075)(201703131433075)(201703131448075)(201703161259150)(201703151042153)(20161123561025)(20161123565025)(20161123563025)(20161123556025)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CO2PR03MB2357; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CO2PR03MB2357; X-Forefront-PRVS: 0476D4AB88 X-Micros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0kxA/FDJUTspBXFVYgICT1eCOUkdVOZMNK7foiu/Dy7RCUKXva6/MGDgJa+cY=; 7:t43tXleniFahFrzMv8vOz5ZCsGXXbgXi3/uCPGlJNq74b1F/HA7FTfYUkLTXxGjImeio6n8cVNe21ORuzxpsNvXYiQXx90OXo07nhEf70psXQpFeWKS+h0MSC4xAegdA+pUZdRP814QXO9YVq6AFIiegL/7hLbSDE1EaMh7H8ZPa3uG7Ia15INMFi+hyllWoXsLUPFG8XBYGrG5BCadL3/nizhJe2BDBBAJNHpt6uZl1lEqOr8HJ0GrSEWJwdX8H SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Oct 2017 07:37:05.2860 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b4bb1c4f-f8cc-4fdf-bd54-08d51f6904c5 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: CO2PR03MB2357 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171030_003732_130476_B8ED289F X-CRM114-Status: GOOD ( 12.24 ) 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);