Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp484568pxj; Thu, 3 Jun 2021 11:26:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxEdiugx5RoYDbMIMMMgZkUC9qC5VFnx7MPg4GoYxOdzXM9xno8VH4Ro/4BbKtUOGVHvRuA X-Received: by 2002:a17:906:3912:: with SMTP id f18mr608789eje.161.1622744769318; Thu, 03 Jun 2021 11:26:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622744769; cv=none; d=google.com; s=arc-20160816; b=wlpkymXpcopzlvec9z+uCkA4jBxQB8Ii4v3XQRlhCfsLdhirnSEf+jTlfb7vZWLwuw mnKSnXpYB0v4VD9g6VrTsu1Pud8Zm3+efI0qq+LXnrD9kaRLqqaSbJRKKDGsUI3yp4RG jUyIzphUuBpSxKe0a13oHMQfUEtw34VQjtU+TluAdjTrktkDLKMj6VJHeujhW6N4sE7T yE6owzzvj0SVrGELJqKALwGCz6++7xViPeckhJ5pffDEx11Zh+2Y/NHXmR6TyLV6B046 rv2Evtsw6VZKfzUyfLsOhdGY2vD3pFoaBWxx1x5HmvQJrTm4ovnM4Zwo37I+WQyZ5jQf HGjA== 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 :ironport-sdr:ironport-sdr; bh=SN2Tu8prTNFW1M1wxje3fD1TjcBvFaYeKaQAdSaOqk4=; b=yvCk0DJNWLBy8DcxznHHWuUkT+VGjsh7aPglAuL0MR+zB+AUDJzEl1t2u+1cCh0qhj +eekBS4UKgqUK0gc+RZySALTEuPtOF+ldDtXVi1g/4wYmfiB+IJsAGkxejBBr735RFSB UbzFL0p73Rb9DzA9VV98XJpOorALv7U3WCQnL5ExfXLG6tmaK/dSQ9747NifargNUSbH BIfGQ70B3o+yv+G4hAZifcIgDk65kdGjTuI6KWQjjftryOkKfGZ/gTKcUTZ1BCUl71id B3a5HvLrPMusLMSZLeOB6kkrTPiMNA8GT3YDaA4+S+s5YPjiTTB9nZr5Rxv7ojeDUjU2 0nUQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id aq21si3256700ejc.451.2021.06.03.11.25.41; Thu, 03 Jun 2021 11:26:09 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229938AbhFCSYo (ORCPT + 99 others); Thu, 3 Jun 2021 14:24:44 -0400 Received: from mga02.intel.com ([134.134.136.20]:6082 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229888AbhFCSYn (ORCPT ); Thu, 3 Jun 2021 14:24:43 -0400 IronPort-SDR: aOcLcuL9OYIw11QK0I8CT7L6vbX0EzEPzJrgTtWTyFiTDXyZK/vBdmJK+eOj+d8u7TCqBzyWCO 7/st+1mK75CQ== X-IronPort-AV: E=McAfee;i="6200,9189,10004"; a="191222693" X-IronPort-AV: E=Sophos;i="5.83,246,1616482800"; d="scan'208";a="191222693" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Jun 2021 11:22:58 -0700 IronPort-SDR: D+avzjsf6I/iFZiMJ35B0jk7tlOXafIUv+nJ6XVxw3UrSMKNG5PqDekxYZ9JyFZYSGRNTfOpzm 0+k8jS4ZCyzQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.83,246,1616482800"; d="scan'208";a="636326876" Received: from coresw01.iind.intel.com ([10.223.252.64]) by fmsmga005.fm.intel.com with ESMTP; 03 Jun 2021 11:22:54 -0700 From: rashmi.a@intel.com To: linux-drivers-review-request@eclists.intel.com, michal.simek@xilinx.com, ulf.hansson@linaro.org, linux-mmc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kishon@ti.com, vkoul@kernel.org, andriy.shevchenko@linux.intel.com, linux-phy@lists.infradead.org Cc: mgross@linux.intel.com, kris.pan@linux.intel.com, furong.zhou@intel.com, mallikarjunappa.sangannavar@intel.com, adrian.hunter@intel.com, mahesh.r.vaidya@intel.com, nandhini.srikandan@intel.com, lakshmi.bai.raja.subramanian@intel.com, rashmi.a@intel.com Subject: =?utf-8?q?=5B=E2=80=9CPATCH=E2=80=9D=202/2=5D=20phy=3A=20intel=3A=20Fix=20for=20warnings=20due=20to=20EMMC=20clock=20175Mhz=20change=20in=20FIP?= Date: Thu, 3 Jun 2021 23:52:42 +0530 Message-Id: <20210603182242.25733-3-rashmi.a@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210603182242.25733-1-rashmi.a@intel.com> References: <20210603182242.25733-1-rashmi.a@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Rashmi A 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 --- 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.17.1