Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3690995ybl; Mon, 3 Feb 2020 04:54:33 -0800 (PST) X-Google-Smtp-Source: APXvYqwO7E9j9eN+0lhDxGDs9gROmKR3Bgls6xOVlKfCt2cJmIVP3Sj/+mPYDtOPvyJynl3k/mVF X-Received: by 2002:aca:100e:: with SMTP id 14mr6923468oiq.88.1580734473242; Mon, 03 Feb 2020 04:54:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580734473; cv=none; d=google.com; s=arc-20160816; b=Zxg6d1Jp/6XFfZDk1CDrmd7gWhL9Ou3CF3ROBuH0/TOklXtdQ58Gx+HxIOrsr4Okhs gZEH5gumL4jIrnavNFE6YVADmOO8l/WHfm5bL2DTilbSw17r8PX2Yv41xwxi1qz3ULmD 4ZdbPOKHgC371mUVMEdSWUtBBcyiVy1lfwmIbH4zljgvrMxxtiGgI3gV/pvYqDKXF00I sXzDi0GRmUxA1UnHza4IOrvLVHAyOEqo4rR+vkO0SeyePFGX1mPay27Ll8x/H4G+voa3 p7iEqZckLcLxvjgdtUpeRJJDd/z5UySZx4ZY2TwCFFAdfV7RSKq/FQClRK+hl80fgyan JYCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject; bh=XyQcg4119q7HrZk/AoUJHE9NsG/t+HYq21hiafMC+ZA=; b=pJgb+WtR8iChIXsnUflmRKeUzLTApA/QRf25/iZmiMkZYszaWmq7uP19feAdh+Veh9 j5cVhCmmeKO2Xc32NszUTZcVehbKDSZlCdh3e3I+5/5/2SNMb1WpAppnvBiKGB7HdfCc 061TBM+tqwAfpv2UHC+Mt92E/Gp1FVlytJgrQ2qnjhn96104oQA57luef+HregshslOR yznL6XbISoahccOTSowrkxTf0jN72D2M8iRv8AME861gbMgqm2vGIfPVc9zPDeGJETFm ydxx+NN82dROZL6KHTyaX4UHVZvm/SHq7caUaHR1N4WpXBjVzWpLLAisYcO6MOdqEI5i 5P+g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id d28si1180956oic.47.2020.02.03.04.53.51; Mon, 03 Feb 2020 04:54:33 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1728025AbgBCLcO (ORCPT + 99 others); Mon, 3 Feb 2020 06:32:14 -0500 Received: from mga01.intel.com ([192.55.52.88]:54615 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727866AbgBCLcN (ORCPT ); Mon, 3 Feb 2020 06:32:13 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 Feb 2020 03:32:13 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,397,1574150400"; d="scan'208";a="225138954" Received: from ahunter-desktop.fi.intel.com (HELO [10.237.72.167]) ([10.237.72.167]) by fmsmga008.fm.intel.com with ESMTP; 03 Feb 2020 03:32:10 -0800 Subject: Re: [PATCH 4/4] sdhci: arasan: Remove quirk for broken base clock To: Manish Narani , michal.simek@xilinx.com, ulf.hansson@linaro.org, jolly.shah@xilinx.com, rajan.vaja@xilinx.com, nava.manne@xilinx.com, tejas.patel@xilinx.com Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mmc@vger.kernel.org References: <1579602095-30060-1-git-send-email-manish.narani@xilinx.com> <1579602095-30060-5-git-send-email-manish.narani@xilinx.com> From: Adrian Hunter Organization: Intel Finland Oy, Registered Address: PL 281, 00181 Helsinki, Business Identity Code: 0357606 - 4, Domiciled in Helsinki Message-ID: <99fd3904-37fa-f070-f7ac-e1dcb5bf43de@intel.com> Date: Mon, 3 Feb 2020 13:31:20 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: <1579602095-30060-5-git-send-email-manish.narani@xilinx.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 21/01/20 12:21 pm, Manish Narani wrote: > This patch removes quirk which indicates a broken base clock. This was > making the kernel report wrong base clock of ~187MHz instead of 200MHz > even as the measurement on the hardware was showing 200MHz. > > Signed-off-by: Manish Narani > State: pending Huh? Otherwise: Acked-by: Adrian Hunter > --- > drivers/mmc/host/sdhci-of-arasan.c | 13 ++++++++++++- > 1 file changed, 12 insertions(+), 1 deletion(-) > > diff --git a/drivers/mmc/host/sdhci-of-arasan.c b/drivers/mmc/host/sdhci-of-arasan.c > index 39176ab5ca1f..0146d7dd315b 100644 > --- a/drivers/mmc/host/sdhci-of-arasan.c > +++ b/drivers/mmc/host/sdhci-of-arasan.c > @@ -358,6 +358,17 @@ static struct sdhci_arasan_of_data sdhci_arasan_data = { > .pdata = &sdhci_arasan_pdata, > }; > > +static const struct sdhci_pltfm_data sdhci_arasan_zynqmp_pdata = { > + .ops = &sdhci_arasan_ops, > + .quirks2 = SDHCI_QUIRK2_PRESET_VALUE_BROKEN | > + SDHCI_QUIRK2_CLOCK_DIV_ZERO_BROKEN | > + SDHCI_QUIRK2_STOP_WITH_TC, > +}; > + > +static struct sdhci_arasan_of_data sdhci_arasan_zynqmp_data = { > + .pdata = &sdhci_arasan_zynqmp_pdata, > +}; > + > static u32 sdhci_arasan_cqhci_irq(struct sdhci_host *host, u32 intmask) > { > int cmd_error = 0; > @@ -553,7 +564,7 @@ static const struct of_device_id sdhci_arasan_of_match[] = { > }, > { > .compatible = "xlnx,zynqmp-8.9a", > - .data = &sdhci_arasan_data, > + .data = &sdhci_arasan_zynqmp_data, > }, > { /* sentinel */ } > }; >