Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp3346246pxv; Sun, 4 Jul 2021 16:10:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxP/M1btj6HcZvhbcUvJLmhtSuqIGye+a1PY4UsrVyV9InbVd2X7h9r8ZUeYA9i1HorIlKO X-Received: by 2002:a02:b155:: with SMTP id s21mr5852109jah.50.1625440241619; Sun, 04 Jul 2021 16:10:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625440241; cv=none; d=google.com; s=arc-20160816; b=pMdBLPkcnLdHaLQtQGfXt34LXGpd3k8kCTrfk7j67vFbFXq7rE4bIDPP93QTjXjf4x 0C9B6bC39cPG75qw7h8vQeAfR1Xb+jLzbEExkksre2zIM/DNQa0/Y4Rm9yAOPyTUkBQf mDv+oKNrfjyRSHJVEou/a5iuO3JmmKh+wXQlJGT8+wLQyW5oAhj2yqIdnF1JH7FJ+7ZE c1z1vdNAOftrAJvfm7wtF8rGyrjBPJumDfiSzpR8NYVDmQoAsamkZW1eaMZFgY15hmjg UmRsaMLEC7FFrEcNlW5w/QHwpUvaQbO6IKsvQCNCmCTW28vpHkxYw+jrOgp0jL1z/DXF gu1Q== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=KuN6FOkpFoifZYgumfooNcGOWXRESEwC9POcmFF2ozY=; b=SnuMplZhoiy2H0CVFvOlUgmV5se7AeeAhl+icyU2aNppnt44KJueXzkA0uEC3oFgMr 8L2v6fXWoW/zS6+NIRUDYCdQK+qTB2gNKXxSxbksvyRykP/NHpdcGGt2/Dj3cuFEXThi H6d7gekH8AKijPTsSoi4dWXdV+ZwGjxuxZBOWIBI9NbGieyd3Gpt76l1e/82qMEVCMPU iyiyPVoVM4HPqPN2ke9MGhyAJCDwCy8otaaVuxFlh/xWWtXicYM7E8MQpwXHVCUxbao8 pa0n+RxLFq0x5UAqqixBCZQOkVlpFX3F3eNjsRiOhMs4uGYNHL0hGlZjSLe0L2w4jw8M xK8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=TozFmyfW; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w14si15230524iov.43.2021.07.04.16.10.29; Sun, 04 Jul 2021 16:10:41 -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=@kernel.org header.s=k20201202 header.b=TozFmyfW; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231434AbhGDXLZ (ORCPT + 99 others); Sun, 4 Jul 2021 19:11:25 -0400 Received: from mail.kernel.org ([198.145.29.99]:48298 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232206AbhGDXKF (ORCPT ); Sun, 4 Jul 2021 19:10:05 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id BF7C361935; Sun, 4 Jul 2021 23:07:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1625440045; bh=Pq4EhHKMvQqR0dTi44tWCX6DB7KbvPxZSq5FW7Mm8F4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=TozFmyfW+HlqpdYMHUQXU5fBiHUpGUq3ifL+xrc6BY4/TEemhzD8NXXSuL7r78wYG 3ikhF4qlTx3vTwowK8S36+P4y2zUtamjgwp+JSdV+vCFpfN5cwld9DEagjCVxbL5Et 9MtrmuKPpzpIWGnFGsJ/Gxgzln5U16ccy5MTriI0bXFZyjW/kA+1kDEUqT8a016ozy TVA+SnEUbfjE8NeZBXmAUpsClWKK1LoqYJp4rgnozd6VU3MzlP2KI3ttk7p0Ixx+eM wfJkwoGM5Gd/Afl20JIllNLM+AuGnXvB5jyKWDyfLGABUjRfglJpO6uTs1drAxbrsS 00/98P9NJMzKg== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Andrew Jeffery , Joel Stanley , Ulf Hansson , Sasha Levin , linux-aspeed@lists.ozlabs.org, openbmc@lists.ozlabs.org, linux-mmc@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH AUTOSEL 5.12 51/80] mmc: sdhci-of-aspeed: Turn down a phase correction warning Date: Sun, 4 Jul 2021 19:05:47 -0400 Message-Id: <20210704230616.1489200-51-sashal@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210704230616.1489200-1-sashal@kernel.org> References: <20210704230616.1489200-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Andrew Jeffery [ Upstream commit a7ab186f60785850b5af1be183867000485ad491 ] 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 Link: https://lore.kernel.org/r/20210607013020.85885-1-andrew@aj.id.au Signed-off-by: Ulf Hansson Signed-off-by: Sasha Levin --- 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 7d8692e90996..b6ac2af199b8 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