Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp1146094pxv; Fri, 9 Jul 2021 19:28:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyjsiNWJUXAsQMrcOhirs9WK0iyGGykt7s8BT26ukbPMjkXtq0oBj8GFgC6RSu0BaeuyrNm X-Received: by 2002:a17:906:585a:: with SMTP id h26mr40959010ejs.31.1625884133271; Fri, 09 Jul 2021 19:28:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625884133; cv=none; d=google.com; s=arc-20160816; b=ixbWupKxqD/Vq+/K9YdL/VaxuHwmB3CzYdd9E3Ih0CwGSsxFAnONAoLVPhcGpl9z6L HLnO3x3aUiLdt249TPa+8aRso2iGZL3zrMWoPFMROnc3XF+O+YT2gcyyYQluJabAs4SH h8wLwnmrJ8aRyjhzw5OZiDQ8UKwrQucbekF5sX7lHL1HLoQuH3G+ILkK/Aw0IQq5i8Lw bw/I8CymoQPMC/awMmDgq1zHA8ubWCIbSSjLDfe/sdF2HCm/91D2TGtjXJEPdw9KpYmQ GMRV15IThEDroTUy4wrNAsoQyOk7h8d0qrzshIyd0sgbH+xmqMVtIgHCNcVxKqQATfNh MNsQ== 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=xZeCJ2tKYHSw5kyjzMIeURdaNKz2hQSYVdsBudW25ns=; b=o0HTnDPor2dB2IVVtqr7GSR0dPPbwomrE1XJ+0n24OKwbGk55kkgIKjptsJWjhrl5J 4fMxFDjQy0nLRcWvW8wTGMVHz3euY54Sz61igv2CNYHT4N6P6gMJDDdpUCwS0aYE66Pu sCpKRCUdwWQ6xbkmF/kFOOFn9IYtevvYYYmnlgc75SaxByXYh+X7IApcAr/NecstKa9O h9FVeqmEeWnUiZoHtOWFFBmx+RmMbIVszaoSG5qVfCUf327EQNTla1+3JZGQfby7F3ek C+5XbaYOUtaKtjz8CMjfb3uDKPGtpzZwzWXsOUFSw/9wqHZtwedmSgztjLNyR0ZgNGzb w4RQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YIxfmYMU; 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 z8si8202210edx.581.2021.07.09.19.28.30; Fri, 09 Jul 2021 19:28:53 -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=YIxfmYMU; 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 S233179AbhGJCaU (ORCPT + 99 others); Fri, 9 Jul 2021 22:30:20 -0400 Received: from mail.kernel.org ([198.145.29.99]:42882 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233244AbhGJC1W (ORCPT ); Fri, 9 Jul 2021 22:27:22 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2D70C61419; Sat, 10 Jul 2021 02:24:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1625883861; bh=nro3MGa7h3qaKoTs4yw4efAa7zU3Ahe3U9SERvsOMXQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YIxfmYMUeKdfMAIdgx4bWlvMri3OdC057+uCtM/+0rryuXlpxIj48HRpRDy7pm9wK zwWHU+gurv+KZZivqMPPovZ4wJcjxJP5UbaCfLWM/onfhXll5AxP/I0d//6Y7H2InE 9EnIxISSNJXu6nB3rV+VlFCtd0Idc9xnRRg1lALyXRuXdjQ0UDhIzc6W34K+OiRN38 y71+LITiZiDhQQ4kGf8HfAeBAhNpIN70TjvAdGPjMXwludQpV+DCTukgNOR/KhM8xY CdqNW+sViKXviL8ah3aE45NeL0ziHHunDpZ6btTfgqSGGapMGd3e0YBavGNFhNvGeY T7dOFEkRpPIhA== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Rashmi A , Adrian Hunter , Vinod Koul , Ulf Hansson , Sasha Levin , linux-phy@lists.infradead.org Subject: [PATCH AUTOSEL 5.12 102/104] phy: intel: Fix for warnings due to EMMC clock 175Mhz change in FIP Date: Fri, 9 Jul 2021 22:21:54 -0400 Message-Id: <20210710022156.3168825-102-sashal@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210710022156.3168825-1-sashal@kernel.org> References: <20210710022156.3168825-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: Rashmi A [ Upstream commit 2f2b73a29d2aabf5ad0150856c3e5cb6e04dcfc1 ] Since the EMMC clock was changed from 200Mhz to 175Mhz in FIP, there were some warnings introduced, as the frequency values being checked was still wrt 200Mhz in code. Hence, the frequency checks are now updated based on the current 175Mhz EMMC clock changed in FIP. Spamming kernel log msg: "phy phy-20290000.mmc_phy.2: Unsupported rate: 43750000" Signed-off-by: Rashmi A Reviewed-by: Adrian Hunter Acked-By: Vinod Koul Link: https://lore.kernel.org/r/20210603182242.25733-3-rashmi.a@intel.com Signed-off-by: Ulf Hansson Signed-off-by: Sasha Levin --- drivers/phy/intel/phy-intel-keembay-emmc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/phy/intel/phy-intel-keembay-emmc.c b/drivers/phy/intel/phy-intel-keembay-emmc.c index eb7c635ed89a..0eb11ac7c2e2 100644 --- a/drivers/phy/intel/phy-intel-keembay-emmc.c +++ b/drivers/phy/intel/phy-intel-keembay-emmc.c @@ -95,7 +95,8 @@ static int keembay_emmc_phy_power(struct phy *phy, bool on_off) else freqsel = 0x0; - if (mhz < 50 || mhz > 200) + /* Check for EMMC clock rate*/ + if (mhz > 175) dev_warn(&phy->dev, "Unsupported rate: %d MHz\n", mhz); /* -- 2.30.2