From patchwork Thu Nov 3 06:21:25 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jaehoon Chung X-Patchwork-Id: 9410405 Return-Path: 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 33CF160573 for ; Thu, 3 Nov 2016 06:24:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 262002A4DE for ; Thu, 3 Nov 2016 06:24:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1ABED2A4FF; Thu, 3 Nov 2016 06:24:23 +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=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B5D6C2A4DE for ; Thu, 3 Nov 2016 06:24:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753970AbcKCGVt (ORCPT ); Thu, 3 Nov 2016 02:21:49 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:37824 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753502AbcKCGVr (ORCPT ); Thu, 3 Nov 2016 02:21:47 -0400 Received: from epcpsbgm2new.samsung.com (epcpsbgm2 [203.254.230.27]) by mailout1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0OG101XOKYZVP780@mailout1.samsung.com>; Thu, 03 Nov 2016 15:21:44 +0900 (KST) X-AuditID: cbfee61b-f796f6d000004092-d0-581ad778c16f Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2new.samsung.com (EPCPMTA) with SMTP id 24.3B.16530.877DA185; Thu, 3 Nov 2016 15:21:44 +0900 (KST) Received: from localhost.localdomain ([10.113.62.216]) by mmp1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OG100J7YZ02LAA0@mmp1.samsung.com>; Thu, 03 Nov 2016 15:21:44 +0900 (KST) From: Jaehoon Chung To: linux-mmc@vger.kernel.org Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-rockchip@lists.infradead.org, ulf.hansson@linaro.org, robh+dt@kernel.org, krzk@kernel.org, heiko@sntech.de, shawn.lin@rock-chips.com, Jaehoon Chung Subject: [PATCH 03/13] mmc: dw_mmc: change the DW_MCI_FREQ_MIN from 400K to 100K Date: Thu, 03 Nov 2016 15:21:25 +0900 Message-id: <20161103062135.10697-4-jh80.chung@samsung.com> X-Mailer: git-send-email 2.10.1 In-reply-to: <20161103062135.10697-1-jh80.chung@samsung.com> References: <20161103062135.10697-1-jh80.chung@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupjkeLIzCtJLcpLzFFi42I5/e+xgG7FdakIgw2NBhbzj5xjtfj/6DWr xY1fbawW589vYLfY9Pgaq8XlXXPYLI7872e0+PTgP7PFjPP7mCxa9x5ht7jzZD2rxfG14Q48 HptWdbJ53Lm2h81j85J6j7+z9rN49G1Zxeix/do8Zo/Pm+QC2KPcbDJSE1NSixRS85LzUzLz 0m2VQkPcdC2UFPISc1NtlSJ0fUOClBTKEnNKgTwjAzTg4BzgHqykb5fglrHpo1BBE3vF6cYN rA2Mz1i7GDk5JARMJB5seMEIYYtJXLi3nq2LkYtDSGApo0TzxpuMEM4PRonHd9eBdbAJ6Ehs /3acCcQWEZCV+PnnAlgHs8BBJon/k3azgCSEBQIk+ttPMoPYLAKqEm9+HwNr5hWwlpjX3sgO sU5e4sLVU2D1nAI2EhOPNIPVCAHV3Dq8kmkCI+8CRoZVjBKpBckFxUnpuUZ5qeV6xYm5xaV5 6XrJ+bmbGMFx8Ux6B+PhXe6HGAU4GJV4eB8kSkUIsSaWFVfmHmKU4GBWEuHddQUoxJuSWFmV WpQfX1Sak1p8iNEU6LCJzFKiyfnAmM0riTc0MTcxNzawMLe0NDFSEudtnP0sXEggPbEkNTs1 tSC1CKaPiYNTqoFxtcAu5um/j87I6/krb3ZcQzSi3CI+/1Qb/1qXD+V5W4wmnXpYtGlpEVfJ aUMnSa3MHJ3KKUc+9sV/nL5m69aSpcGmuh8vxqluy1iwOnTe7k5uG00uhevWhpl3p96V/ZC4 57bjTq5spo2yt1WrlT5vyCzdtWxWisb8g5VNK7uVvz5YH2p4Sr1diaU4I9FQi7moOBEAe6zh 0KECAAA= X-MTR: 20000000000000000@CPGS Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP If there is no property "clock-freq-min-max", mmc->f_min should be set to 400K by default. But Some SoC can be used 100K. When 100K is used, MMC core will try to check from 400K to 100K. Reported-by: Shawn Lin Signed-off-by: Jaehoon Chung --- drivers/mmc/host/dw_mmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/host/dw_mmc.c b/drivers/mmc/host/dw_mmc.c index 1e71fd4..6ccb817 100644 --- a/drivers/mmc/host/dw_mmc.c +++ b/drivers/mmc/host/dw_mmc.c @@ -54,7 +54,7 @@ #define DW_MCI_DMA_THRESHOLD 16 #define DW_MCI_FREQ_MAX 200000000 /* unit: HZ */ -#define DW_MCI_FREQ_MIN 400000 /* unit: HZ */ +#define DW_MCI_FREQ_MIN 100000 /* unit: HZ */ #define IDMAC_INT_CLR (SDMMC_IDMAC_INT_AI | SDMMC_IDMAC_INT_NI | \ SDMMC_IDMAC_INT_CES | SDMMC_IDMAC_INT_DU | \