Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp1147273pxv; Fri, 9 Jul 2021 19:31:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyMm7wzIrWniQBIido5IHnAwYOp0EEactTQSqTXgl/gGG4nDxYNjJfC/WJtKt9bCGB+dsJi X-Received: by 2002:aa7:ca44:: with SMTP id j4mr74321edt.203.1625884267944; Fri, 09 Jul 2021 19:31:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625884267; cv=none; d=google.com; s=arc-20160816; b=VGmkXA1Q5fUTogCNcnNllnTMvYmjUK0cIpAaelsUha4ghDluf853Qr77P64m2F5c3O m2KoL5poGDrsUcOLnyfb1eMGDjO25mdST8wcTLHjBhlLUA2xKxZP7K53qh3SVfyW8AOw zmVOHI8MYE8/fR9X/vFjrn2mpYF89rByDzaCCrHTqFSIkD/oYBD+ThZ1riequiS7G2pP OLO1yXrmw9NYRSI8MqiuAphs62Oidz3mpoTILVNUtWm07L6DprQw021373qvzqEPdGc4 /s2OK53Y3cmITs8xWQjtBP/XedEybjkJQFsknIMStMZYYUL2gw3VJeESKbOBV8RRRcqS 6qQA== 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=KZxzzzoumESPyAmhd+AOKUhaLw0zWMfVNZb9ZSsa1V6it9I2w0MbpSSxHNdv8HDBDP G6+B6EvH8TLvgn9RuZW/BvyGq6ZOPbILRN0cwP9XoLUhI2uRUhRY92ySF/ds5LhQGKeE dOYbOKBudwxhIyyBhC7aOyWGcAqx7MnM/g9heZwHdsqa56tM08UtmMyM5aKYaMwTwc6u JcyoEkwtotutiPKrVfjP6MMPnh/lci+PVl6tyqlG1+dV90OFH3cwK/nKDeoi/qGO6HQA bFyXWQRzGvSE0AtjzdrqYDVWQnU44hXXZjF91Gn5Am77gYQMjvOnb4gC8yyQqpZNM8JI 7Dqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PZaRvaPj; 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 bc18si9431351edb.400.2021.07.09.19.30.44; Fri, 09 Jul 2021 19:31: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=@kernel.org header.s=k20201202 header.b=PZaRvaPj; 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 S233688AbhGJCch (ORCPT + 99 others); Fri, 9 Jul 2021 22:32:37 -0400 Received: from mail.kernel.org ([198.145.29.99]:41906 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234813AbhGJC3q (ORCPT ); Fri, 9 Jul 2021 22:29:46 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 1353A613DF; Sat, 10 Jul 2021 02:27:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1625884021; bh=nro3MGa7h3qaKoTs4yw4efAa7zU3Ahe3U9SERvsOMXQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PZaRvaPjZgKB7LWVnHcqjfNykrKAhY5LsNL/tSs6RuyncCFhJ8Q+tObvKS8NcIafB cSNplMDAKLp7AH/mHUJ7WpAbHA4cbb5dmTiQ7E2kUjwSyCGUvGH9XeSlqL+GPnBJGk P+fEYcMBEJ28VgPxcpWrW/lOEXBCChuX/E1F6YHPq2EMmJhDYL07CK6Rn1rqLoWByY 1Ja1v5uaYYQE7UHE56Y2aI/ffJ21Fwu2ugj7gJ19hYIO7lKqcvvYD8RLtpHkriR4Yq LNufWWGzs85++g6fgpHZNUPVaKd4XBFhIP2E3KCEYxvzkAjunjS6BcOWXVuFOb1dMq 4MzLR3Qn0ZD2A== 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.10 91/93] phy: intel: Fix for warnings due to EMMC clock 175Mhz change in FIP Date: Fri, 9 Jul 2021 22:24:25 -0400 Message-Id: <20210710022428.3169839-91-sashal@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210710022428.3169839-1-sashal@kernel.org> References: <20210710022428.3169839-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