Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2964984pxj; Sun, 6 Jun 2021 21:16:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyh7vVtFxfhnNhMAV3Bovm1xWe8MbLFfcSMnp7o/zsdfYC54oiyGrxxXbvOlD4TEXSOw48S X-Received: by 2002:a17:906:5a9a:: with SMTP id l26mr16069556ejq.490.1623039408093; Sun, 06 Jun 2021 21:16:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623039408; cv=none; d=google.com; s=arc-20160816; b=kxhvoA0Zi/ZYwRxjm1qmxdI5pGlwOHUdY9hIB0YSFwn7f0LwBP/IuiIGU2/T4KXyFd WFR27zpriQX0IfgPKIEsnjkdDRxx2iQJn9odH12wa63RIrBiHbMMxWsglLVU3QZdxhla HDzSOJ254GBKSRfWtgT+I+/hk6Yuah1pO3VkbXLz9rZKuQCBDnrjMeuOVf/YAI9T74FA vS7j8bgmc6hhpp9cnz6DL3zWYsf/EXHksf07pzhbSK2BJozqjOv5swP36zfqyJSVjHfb W7ok9pmv0ttyEAcYemfQP898H7kvHzvxh4CMTWTTFXEvu4M5ZwtvOKJgCKJujZMDIcrL kkVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=hbR25Ey1jYTS5sXaXKkm7NsaVYIVVD2EtITwUZt+jv4=; b=p4QWlQJ1GNEGOvj6A+Yl6h0tJS5jLvuTLxsQYb0CQdN5Ojv/tUVGC5SPegBDtCH6B0 qrk9CDHzD7XT17m2z4kJhbT+JfJAxH/Q0r+5ePaA36G221QWWngLQwfmU+x/6aGY4EYj MF4zCGiNv+4kJO4y15t64IeLan/Zle8sObMFdt0ehXmDjezwnoQXauAVFLaBamMGUIE+ m43Fy/F0EubczBTkk7bNiw74w6h/7mkkodgjfHKu8dKdTQxyWCXSxfYVLt5jLIUDirag NvSdh/jPLJFx3vsU7g5pxgZehLpV0nO1R+WVzSMuEKz2nTThrgofKf29+3KYzQdIH+tK Fc0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@jms.id.au header.s=google header.b=eKsNiSwD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y15si850176edq.599.2021.06.06.21.16.09; Sun, 06 Jun 2021 21:16:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@jms.id.au header.s=google header.b=eKsNiSwD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230226AbhFGEOc (ORCPT + 99 others); Mon, 7 Jun 2021 00:14:32 -0400 Received: from mail-qk1-f179.google.com ([209.85.222.179]:40949 "EHLO mail-qk1-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229545AbhFGEOb (ORCPT ); Mon, 7 Jun 2021 00:14:31 -0400 Received: by mail-qk1-f179.google.com with SMTP id u30so15440480qke.7; Sun, 06 Jun 2021 21:12:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jms.id.au; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=hbR25Ey1jYTS5sXaXKkm7NsaVYIVVD2EtITwUZt+jv4=; b=eKsNiSwDdQrxODDTUtuA3Uy1ZOpjV0TNA6OQVCt8it1vcmDzH4pXSHCslNNVdqQs6H gtXvbWVWqX3fhQ1IQVbXQICfR06Wd1oOm/RbPoR3y5haOeOC1BV0Wc7q6mzp77VZxTyJ G/XG14v1FeXw9YdIv+tixboAv/PzlMASCV8FM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=hbR25Ey1jYTS5sXaXKkm7NsaVYIVVD2EtITwUZt+jv4=; b=h1ayn6HKQOF5BTD6K8n3PgO93OHaSuob51uUPCueVbB0mcIfMbDNoQqanDD3Ukzsh2 VVgkg0iuVZWBuNisWOM4fOnL3TQQoLg/2TY1dralCwz2JOiGZTcTNnXntAa5Ms+5zZs7 h5tloEh6zDKamE7c2pkGnh6FE/7EAjl6d0a8n/ZLj1SKQwX17YM2y7pAdtmxuukzIUE0 CmFW2QRE4WtJar9Hphz658paLKiiEOQxibRwxrtLRTDouY5WCw0wzmmHnmuTKdA2pOKb NvgfZEB8OkreWstmhEAw8958wXgqDzTmoeZ20kD2I3FoV7eDWU0KTatC3ADbRy6Sacr2 JKdQ== X-Gm-Message-State: AOAM530rMyJ3/NVOVJdOOeQ2lFi3fePJ3InRsDb9oG4aO+TjRpcLl/c6 dsBZwKM1ET+dDqxcTqa3iqx/Bolk+yrNpqacYIY9fkfd X-Received: by 2002:a37:b404:: with SMTP id d4mr3459096qkf.465.1623039100241; Sun, 06 Jun 2021 21:11:40 -0700 (PDT) MIME-Version: 1.0 References: <20210607013020.85885-1-andrew@aj.id.au> In-Reply-To: <20210607013020.85885-1-andrew@aj.id.au> From: Joel Stanley Date: Mon, 7 Jun 2021 04:11:28 +0000 Message-ID: Subject: Re: [PATCH] mmc: sdhci-of-aspeed: Turn down a phase correction warning To: Andrew Jeffery Cc: linux-mmc , Adrian Hunter , Ulf Hansson , linux-aspeed , Linux ARM , Linux Kernel Mailing List , Steven Lee Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 7 Jun 2021 at 01:30, Andrew Jeffery wrote: > > The card timing and the bus frequency are not changed atomically with > respect to calls to the set_clock() callback in the driver. The result > is the driver sees a transient state where there's a mismatch between > the two and thus the inputs to the phase correction calculation > formula are garbage. > > Switch from dev_warn() to dev_dbg() to avoid noise in the normal case, > though the change does make bad configurations less likely to be > noticed. > > Reported-by: Joel Stanley > Signed-off-by: Andrew Jeffery Reviewed-by: Joel Stanley > --- > drivers/mmc/host/sdhci-of-aspeed.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/mmc/host/sdhci-of-aspeed.c b/drivers/mmc/host/sdhci-of-aspeed.c > index d001c51074a0..e4665a438ec5 100644 > --- a/drivers/mmc/host/sdhci-of-aspeed.c > +++ b/drivers/mmc/host/sdhci-of-aspeed.c > @@ -150,7 +150,7 @@ static int aspeed_sdhci_phase_to_tap(struct device *dev, unsigned long rate_hz, > > tap = div_u64(phase_period_ps, prop_delay_ps); > if (tap > ASPEED_SDHCI_NR_TAPS) { > - dev_warn(dev, > + dev_dbg(dev, > "Requested out of range phase tap %d for %d degrees of phase compensation at %luHz, clamping to tap %d\n", > tap, phase_deg, rate_hz, ASPEED_SDHCI_NR_TAPS); > tap = ASPEED_SDHCI_NR_TAPS; > -- > 2.30.2 >