Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2895623pxj; Sun, 6 Jun 2021 18:33:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxXpDPQN302Z88u4OHjEAQsgUE9WEqoYJQLGPlzRX4CHDS4EET+mDuTNNrDz1yfPqdj9rNy X-Received: by 2002:a17:906:c00f:: with SMTP id e15mr16415604ejz.458.1623029587344; Sun, 06 Jun 2021 18:33:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623029587; cv=none; d=google.com; s=arc-20160816; b=Oks+0BqOmglk5J8/vO6eUVs0/krtaKu0Ph3OAxgQL+BU8Tr6wJDo7pcqJxywkij/dG io+cx1rbASt0XrjJ6oeHozNoOniDMDhd34sxoJi2B/Z9Zq90en9C6fDRYxsEWhzGQc7f VFdqffq7/4sNVGIATlmnP564xzm51ZM7W/uNFZWSTX464KNgakNtjJ176suuS0G7/TEt m0EAsL5Z5+txMxxM82N9G6VkXXe2sn4tuBxjJznr3yuBTZdMPzTqdghuPWzScq5BM23G e71uW8TqbRyfieln1IS5+ynekXdXQ9pMAT3/l88HAczCuSxa7bJPcDPpRRuI3IwHcQSB S5sA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature:dkim-signature; bh=GRzcE4hI5AG2i78thbcMf/cB97dZ01L3NdzHyw2+Nv0=; b=UBW3hGiaN6tSDfIVOkLoJpve+FVzmzu4dIkZDi3rWY6d/vyjzIcihnwos5smcBiVSD Ne1uURWnyrUTxvohntETlh4lhYZaqcB+0HcBVXNCOZuxK5I8klFBOdOFfbgv096BQdfp ElixK/AJJvC3Olr2lch4r8bDYF6aS/3X+XbBcPa84gkY9SqPiSilszPfcat3RPwkIWjn /6R/t5Vac+95niqfsU7lD8yCpPLAwM+hUBfje0nPkZz8dQ4Tz/Kl9Hc4wz4LYCVbG97S XuwuHbqUkPUpEDKtcKPBQyGSjYoWfsCjxBFzgrHYk/G3QaorPrDZkeg0VbwAKFXDChv3 j9EA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@aj.id.au header.s=fm3 header.b=e57ywDic; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=jrfBPDSH; 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 j25si11583562edq.489.2021.06.06.18.32.43; Sun, 06 Jun 2021 18:33:07 -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=@aj.id.au header.s=fm3 header.b=e57ywDic; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=jrfBPDSH; 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 S230131AbhFGBcg (ORCPT + 99 others); Sun, 6 Jun 2021 21:32:36 -0400 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:58807 "EHLO out4-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230078AbhFGBcf (ORCPT ); Sun, 6 Jun 2021 21:32:35 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 900305C00E6; Sun, 6 Jun 2021 21:30:44 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Sun, 06 Jun 2021 21:30:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aj.id.au; h=from :to:cc:subject:date:message-id:mime-version :content-transfer-encoding; s=fm3; bh=GRzcE4hI5AG2i78thbcMf/cB97 dZ01L3NdzHyw2+Nv0=; b=e57ywDicKtu87q+d8RSK+Uh9L+fpAXqXjvcuSEdrNA 4iHp3kY2ObBLPAtZqbbaQoNrY3Fu0qtd3G5q2F6DRnpOwCTgsK1qNs4Mvo0tiARr Bnyzxq8IzTvKZC5PlVnAWHSNAB2/yVEFYp3Wr+eA5dYW1X+uSqllNBfCrOgL+sZO m99glIg3eGoyH1S8TIDMfe/EFMEKv8gkrY7mgGibogV+eGPZ0SA/ZT3GBWJvonM2 MoW3Odv/3r5OInfFmeQzpPXUC1yR0STMXiHw4RNszb++wEDNNbpZbAIMIe0xrxSp sEtXFbNteFGjeuoJ0xdpsT9LrJFmzzaWDYPJdrts6PIA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=GRzcE4hI5AG2i78th bcMf/cB97dZ01L3NdzHyw2+Nv0=; b=jrfBPDSHqWTSn1tTrDWLEYuUwOHA3dRg2 r3x5OHNhDPozYBJj8tiGWPYrcTQtUvroc2ghN9bfxBIAjWsFwrCo92r1AFUYnFCi BIBo5hgOwRTIaF283gcjpHZdoIBIwHr2nwcvN9vxa3NBVIHuLR6K70Fct1CB1XkP tqh9oG79mhDBYV9bG52Wg+H5XAYZ2+R5KExo/m7qV+7oEuXW6Yf6Q60VMtBGjDYY yTY9andCckGWOBT1ZI9lBNuAKyYLqovPDnuOiWtyW+2XFooce05pfBRt+cLqvkIK i4lhY+l3xRT9dbFjeSNZs0QKRbeTNOXlvU1qzOFll6y5rAG4szjyQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrfedtiedggeehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkofgggfestdekredtre dttdenucfhrhhomheptehnughrvgifucflvghffhgvrhihuceorghnughrvgifsegrjhdr ihgurdgruheqnecuggftrfgrthhtvghrnhepkefhieffjeevfeevhedtieeihfefvdejle dvvddthefftedujeethfeuueelfedtnecuvehluhhsthgvrhfuihiivgeptdenucfrrghr rghmpehmrghilhhfrhhomheprghnughrvgifsegrjhdrihgurdgruh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 6 Jun 2021 21:30:38 -0400 (EDT) From: Andrew Jeffery To: linux-mmc@vger.kernel.org Cc: adrian.hunter@intel.com, ulf.hansson@linaro.org, joel@jms.id.au, linux-aspeed@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, steven_lee@aspeedtech.com Subject: [PATCH] mmc: sdhci-of-aspeed: Turn down a phase correction warning Date: Mon, 7 Jun 2021 11:00:20 +0930 Message-Id: <20210607013020.85885-1-andrew@aj.id.au> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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