Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp3344561pxv; Sun, 4 Jul 2021 16:07:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwhyzFl3rEM/4RngAFg5rME2xK/eAcWMr6bK30uji48oFc22SGbbTVjes2uoyLexuVs/h6+ X-Received: by 2002:a92:3610:: with SMTP id d16mr8077299ila.16.1625440052300; Sun, 04 Jul 2021 16:07:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625440052; cv=none; d=google.com; s=arc-20160816; b=M0SXGHUiO0GrveB6KDTFJT96A6sGPkQQhxZCTy/5Umtl8DsdXFeJaXTjwkKC5xFGmR QNHhGY8+/xTTTK4vZgOYIL9Pd8FsKxqfr7ZIxaL7lpDhUM5Z2PsdtWIp+tTB7FUCfDwv V7u5M4pL+ygMDSC490eYxzULAQ8D/LacMooVS3mdrnur7HC+FfzT8o8MM/7lIBLuHkRH r9yAfJ/FATWyg0HUCic/GMp1hOPQQbYkUgPhF+xl1DfRqthRnk0RBX+ZHCjOK/qTqy5b f9+agm3BW/VcAPKhHsvU7Bijnwz2vta7RAbLJiiXaCsiTAMv/aI6Q+14vuwLr+dAv6RI RKVA== 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=41lnT1dAJNWq17tQ+twAYfRAKQNBBUvFbAq3xfVHdO8=; b=Ie7NPqH68VMPgTh5HIDWJvHjfJaIS7Rt1RIijtlwfmPj5A8lJ5QIYjIDf1R9AHxT0l Y4Lr3g1gy6YQun9Zblp6+jZoDWszGl0ItGiNxkKYj+obp2hHmtMg5WGIUzdSk7zi8miZ JvwYG4HwvQfrs7HsY5ISGCXgRQBo4iwO/4G+PCzSyLZe5cnz9TUvWTkXy9XMZ2l1eIRw xjZnGgGgYoIKuk6R9KkojmdlA6Fkpn44MUS1VddSVhGhWhRNLCisRJcL+AHsA+NLEM04 VlqKsFKZMC9LlDyW2+Twh7UzbwWx1xq+F+xtI5NRnCnTAHZoVB8tpzigSi3vYaRzGVmz xozw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=stK+WvId; 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 az39si5083727jab.94.2021.07.04.16.07.20; Sun, 04 Jul 2021 16:07:32 -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=stK+WvId; 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 S231287AbhGDXIz (ORCPT + 99 others); Sun, 4 Jul 2021 19:08:55 -0400 Received: from mail.kernel.org ([198.145.29.99]:46478 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231157AbhGDXIK (ORCPT ); Sun, 4 Jul 2021 19:08:10 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 98B9161283; Sun, 4 Jul 2021 23:05:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1625439934; bh=g9qfdaST5Xg4hE7mjON8bksK/iUulk9ir5gSDX6PlSQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=stK+WvIdpe0Iiat6uBMwOAGvASdKTq4SyEoEOxHocMXLRjhbkbZN2JVrUvZDDH3NC UYiuxskOsTUZp5xm4pGPURboWVzNuEBMdCey6bi/jipweKi5EbrMln+iAgxCT85Nej yNF5D2iRHy+p/W8d3/82E4cgrEkoxscpOYqeRwlQdsEJrU3uZdPH1UceohBawdbst5 yO90zs9wxgYPlxGTNZ+lKuj5Kl9mZRN28321BWZIvkPcST28fz0dLCgYyQre3IqoZ/ Sj6VUMKE8ZbIFTtZ7AMC1du4feuwSg0a9W+4VdKPSEhvPKumvQq4s1aTWkJKuU/bqu ZhCx3SV3t+/tw== 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.13 54/85] mmc: sdhci-of-aspeed: Turn down a phase correction warning Date: Sun, 4 Jul 2021 19:03:49 -0400 Message-Id: <20210704230420.1488358-54-sashal@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210704230420.1488358-1-sashal@kernel.org> References: <20210704230420.1488358-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 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