From patchwork Thu Jun 3 18:22:40 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "A, Rashmi" X-Patchwork-Id: 12297811 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1464AC47096 for ; Thu, 3 Jun 2021 18:23:13 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id DBAC761358 for ; Thu, 3 Jun 2021 18:23:12 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DBAC761358 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=intel.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=LmgTVN1zuc1nzqjHZ4qBTWv//SdoBpeDbbu/ukjQNZY=; b=ry1ppIxbN+wg9X L8s9zMT5cKKLXJFCvX0JqFV7Rj2nDNPPahWoJmbp3HYsSZaayeTUXJ9hoqD2L+ts2JPBva+aztJ1I IADgLXpSykrqwaImtyV3XGwaC7XL6JuHEeEYi3e5ncryIOvdEmmsFQT8gkXtR/wTnPkWZL9NflNNg P/QfiC5CyUy6EozIlKlwRj3TevR75pQuke4ppfbq2GxNISQzKbITxfCz1j4sHbvbnfHs5aZkPSS/x Dbjf4uYCYDz0alJpBZeV6UGcw6n6KkB6TCWmWZjHjgYXgnkIpIgCSMXD4Nq0DJ3MVviFMXsU1lj7C R2m53W8+I+Z45j9Qhdtw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lorzs-00A9zn-Ck; Thu, 03 Jun 2021 18:23:12 +0000 Received: from mga01.intel.com ([192.55.52.88]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lorzW-00A9cw-G7; Thu, 03 Jun 2021 18:22:51 +0000 IronPort-SDR: yX/Y64p9fucmX8xbgMwv5dIyoFoHuCh5xJevd/VgrCfvHtJtyualLqcU5Pe/DcEd0MTSa7eMjd I4RsT6+GdsrA== X-IronPort-AV: E=McAfee;i="6200,9189,10004"; a="225422924" X-IronPort-AV: E=Sophos;i="5.83,246,1616482800"; d="scan'208";a="225422924" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Jun 2021 11:22:47 -0700 IronPort-SDR: kMYEYCsYzedndKna6i+wv7rn59/iLcyM+9qilAh/ZATEsuMfMYnrCpYDtcck3lqVInCaeduH00 L+w3scUr95SA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.83,246,1616482800"; d="scan'208";a="636326849" Received: from coresw01.iind.intel.com ([10.223.252.64]) by fmsmga005.fm.intel.com with ESMTP; 03 Jun 2021 11:22:42 -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_0/2=5D_=5BKMB=5D_mmc_clock-fre?= =?utf-8?q?quency_property_update_and?= Date: Thu, 3 Jun 2021 23:52:40 +0530 Message-Id: <20210603182242.25733-1-rashmi.a@intel.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210603_112250_577289_FEAD6333 X-CRM114-Status: UNSURE ( 8.16 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-phy" Errors-To: linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.org From: Rashmi A Patch1: If clock-frequency property is set and it is not the same as the current clock rate of clk_xin(base clock frequency), set clk_xin to use the provided clock rate. Patch2: Since the EMMC clock in KMB 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. Review comments from Adrian Hunter have been incorporated. Above 2 patches are tested with Keem Bay evaluation module board. Please help to review this patch set. Rashmi A (2): mmc: sdhci-of-arasan: Use clock-frequency property to update clk_xin phy: intel: Fix for warnings due to EMMC clock 175Mhz change in FIP drivers/mmc/host/sdhci-of-arasan.c | 14 ++++++++++++-- drivers/phy/intel/phy-intel-keembay-emmc.c | 3 ++- 2 files changed, 14 insertions(+), 3 deletions(-)