Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1031255AbdDTKGV (ORCPT ); Thu, 20 Apr 2017 06:06:21 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:57644 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030827AbdDTKGR (ORCPT ); Thu, 20 Apr 2017 06:06:17 -0400 X-AuditID: b6c32a2c-f79be6d0000051f7-d2-58f88814ba6a Subject: Re: [PATCH] mmc: dw_mmc: hide clock message when card is resuming To: Alexander Kochetkov , Ulf Hansson , linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org From: Jaehoon Chung Message-id: <25b5c103-ed7c-d03f-d285-bde651691ba1@samsung.com> Date: Thu, 20 Apr 2017 19:06:12 +0900 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-version: 1.0 In-reply-to: <1492613756-16740-1-git-send-email-al.kochet@gmail.com> Content-type: text/plain; charset=windows-1252 Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrCKsWRmVeSWpSXmKPExsWy7bCmuq5Ix48Ig8kntSxW9DtZXN41h83i yP9+Rovja8MdWDx2zrrL7nHn2h42j8+b5AKYo1JtMlITU1KLFFLzkvNTMvPSbZW8g+Od403N DAx1DS0tzJUU8hJzU22VXHwCdN0yc4B2KSmUJeaUAoUCEouLlfTtbIryS0tSFTLyi0tslaIN DY30DA3M9YyMjPRMjGOtjEyBShJSM55+/MNesJu74sKcDrYGxtWcXYycHBICJhIndx5khbDF JC7cW8/WxcjFISSwlFHi2MmbTBBOO5PE1bZFzDAdFy/NZoVILGeUeLjrLiOEc49R4v6hq0wg VcICXhJr77aygCREBCYwSjxo+A6WYBPQkdj+7TiYzStgJ7FuxX6wsSwCqhKLJ1xnAbFFBcIk Nt9/yQ5RIyjxY/I9sDingIvEluOfwOLMAgYSM6YcZoKw5SU2r3nLDLJMQuA3m8T/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ge IcSaWFZcmXuIUYKDWUmEV7H8R4QQb0piZVVqUX58UWlOavEhRlOgLyYyS4km5wPjNa8k3tDE 3MTc2MDC3NLSxEhJnLdx9rNwIYH0xJLU7NTUgtQimD4mDk6pBsaStMyIZ98Zf9Z1/N9rdmXN L8uPNrUNDF8+rZ1ndO/+ooQXv0M0lhzKmXDY+zyDqelWk8VHJF8t3DRl4zQphRSnb9bS4hkT frJtOVp0eHfYnhubjhSpnTLnqWxv3qGofO3p9mU+7T0V9l9f2aQ+zz39K/tvwOKZZiczV56v fsjg7NfoFRW/89MlJZbijERDLeai4kQAVBGzvJ8CAAA= X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20170420100612epcas5p4aaf39235e5856d31ff3a7c17be1b9473 X-Msg-Generator: CA X-Sender-IP: 203.254.230.27 X-Local-Sender: =?UTF-8?B?7KCV7J6s7ZuIG1RpemVuIFBsYXRmb3JtIExhYihTL1fshLw=?= =?UTF-8?B?7YSwKRvsgrzshLHsoITsnpAbU2VuaW9yIEVuZ2luZWVy?= X-Global-Sender: =?UTF-8?B?SmFlaG9vbiBDaHVuZxtUaXplbiBQbGF0Zm9ybSBMYWIuG1Nh?= =?UTF-8?B?bXN1bmcgRWxlY3Ryb25pY3MbU2VuaW9yIEVuZ2luZWVy?= X-Sender-Code: =?UTF-8?B?QzEwG1NUQUYbQzEwVjgxMTE=?= CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-HopCount: 7 X-CMS-RootMailID: 20170419145649epcas2p428230d6fa04b2b6905e500f7b0a33297 X-RootMTR: 20170419145649epcas2p428230d6fa04b2b6905e500f7b0a33297 References: <1492613756-16740-1-git-send-email-al.kochet@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1426 Lines: 39 Hi Alexander, On 04/19/2017 11:55 PM, Alexander Kochetkov wrote: > Commit e9748e0364fe ("mmc: dw_mmc: force setup bus if active slots exist") > made a change resulted in clock message appears every time the card is > resuming (every 5 second in average). Add condition that previously used to > print the message. I think you are not using the latest kernel. which version do you use? https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=ce69e2fea093b7fa3991c87849c4955cd47796c9 Could you check this? Best Regards, Jaehoon Chung > > Fixes: e9748e0364fe ("mmc: dw_mmc: force setup bus if active slots exist") > Signed-off-by: Alexander Kochetkov > --- > drivers/mmc/host/dw_mmc.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/mmc/host/dw_mmc.c b/drivers/mmc/host/dw_mmc.c > index 73db085..faaf2c1 100644 > --- a/drivers/mmc/host/dw_mmc.c > +++ b/drivers/mmc/host/dw_mmc.c > @@ -1178,7 +1178,8 @@ static void dw_mci_setup_bus(struct dw_mci_slot *slot, bool force_clkinit) > > if ((clock != slot->__clk_old && > !test_bit(DW_MMC_CARD_NEEDS_POLL, &slot->flags)) || > - force_clkinit) { > + (force_clkinit && > + (slot->mmc->pm_flags & MMC_PM_KEEP_POWER))) { > dev_info(&slot->mmc->class_dev, > "Bus speed (slot %d) = %dHz (slot req %dHz, actual %dHZ div = %d)\n", > slot->id, host->bus_hz, clock, >