From patchwork Thu Nov 17 07:40:35 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jaehoon Chung X-Patchwork-Id: 9433579 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 BE9EB60238 for ; Thu, 17 Nov 2016 07:40:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B0139292B0 for ; Thu, 17 Nov 2016 07:40:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A52CB292B3; Thu, 17 Nov 2016 07:40:59 +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 579CB292B0 for ; Thu, 17 Nov 2016 07:40:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752184AbcKQHk6 (ORCPT ); Thu, 17 Nov 2016 02:40:58 -0500 Received: from mailout1.samsung.com ([203.254.224.24]:58231 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751059AbcKQHk6 (ORCPT ); Thu, 17 Nov 2016 02:40:58 -0500 Received: from epcpsbgm1new.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0OGR01SAEZZO5X60@mailout1.samsung.com> for linux-mmc@vger.kernel.org; Thu, 17 Nov 2016 16:40:42 +0900 (KST) X-AuditID: cbfee61a-f79916d0000062de-04-582d5efa0861 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1new.samsung.com (EPCPMTA) with SMTP id 05.4F.25310.AFE5D285; Thu, 17 Nov 2016 16:40:42 +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 <0OGR00EHCZZUI940@mmp1.samsung.com>; Thu, 17 Nov 2016 16:40:42 +0900 (KST) From: Jaehoon Chung To: linux-mmc@vger.kernel.org Cc: ulf.hansson@linaro.org, shawn.lin@rock-chips.com, adrian.hunter@intel.com, Jaehoon Chung Subject: [PATCHv3 3/9] mmc: dw_mmc: change the DW_MCI_FREQ_MIN from 400K to 100K Date: Thu, 17 Nov 2016 16:40:35 +0900 Message-id: <20161117074041.8641-4-jh80.chung@samsung.com> X-Mailer: git-send-email 2.10.1 In-reply-to: <20161117074041.8641-1-jh80.chung@samsung.com> References: <20161117074041.8641-1-jh80.chung@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrILMWRmVeSWpSXmKPExsVy+t9jAd1fcboRBh+26FicfLKGzeLGrzZW iyP/+xkt7jxZz2pxfG24A6vH4j0vmTzuXNvD5vF31n4Wj74tqxg9Pm+SC2CNcrPJSE1MSS1S SM1Lzk/JzEu3VQoNcdO1UFLIS8xNtVWK0PUNCVJSKEvMKQXyjAzQgINzgHuwkr5dglvG3Gd7 WAsesVf8X9rL2sC4h62LkZNDQsBEYsHSj4wQtpjEhXvrgeJcHEICSxklnh9eyAjh/GCU2Llx MTtIFZuAjsT2b8eZQGwRAVmJn38ugE1iFiiXWPXlJCuILSwQILH+xEIWEJtFQFXi7en3YBt4 BawkJp5ug9omL3Hh6imgGg4OTgFriZ5fCiBhIaCS0+e+sU1g5F3AyLCKUSK1ILmgOCk91zAv tVyvODG3uDQvXS85P3cTIzh4n0ntYDy4y/0QowAHoxIP74TbOhFCrIllxZW5hxglOJiVRHhF gnQjhHhTEiurUovy44tKc1KLDzGaAt01kVlKNDkfGFl5JfGGJuYm5sYGFuaWliZGSuK8jbOf hQsJpCeWpGanphakFsH0MXFwSjUw2pzVycjfv3Kf4K+lKp8MJ8vbLOfPbthw5ZLNtseVaybk fDhlc8RC7oC6cu2Dp/vSP4VcZU3KmyZTI/rLcP/MgItnWR7tkSndKTI3SWydx5rOZ7+7Y4w2 FQrnhGycGyqf1zHXW9nuzn+PiuTLy2wD1ukx5e5PcuqrC2felfP0yupG4Q3pDZpaSizFGYmG WsxFxYkAXV47xXQCAAA= 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 Tested-by: Heiko Stuebner Reviewed-by: Shawn Lin --- 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 6adefb8..d5f0384 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 | \