Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp5847151imb; Fri, 8 Mar 2019 03:46:46 -0800 (PST) X-Google-Smtp-Source: APXvYqy/RMuVS48TRX9XYmK/d4cIIF4idg9i0ntbmiH8dP3sdJMNqSL0Uc2C2ksKUTxGivqZYdYP X-Received: by 2002:a63:4a4d:: with SMTP id j13mr15949009pgl.16.1552045606655; Fri, 08 Mar 2019 03:46:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1552045606; cv=none; d=google.com; s=arc-20160816; b=mn2L1zOJFRag6WI2ChR4AfiqVYznCyud0DU587xKOy1jqFncWaD1cpDRRF2Pu9UBjg NJsOXZbptPzPen5KLpo/sqoqptpLSRfMyjSkf9KuFiHsCm7EbDf09Q/jFWOrRB4usByU VX3lPxxntPELSuYBy7UNjBQ+hKDfn+EwnJbCJbxMdxGI6GHn4ChYg5NsGZ2GCcNNo2EB XCAYGBA1JoCimIOQdbkdKjter6WlFr5i6wG5zwwInMkUw1t4Pm9hWZzHsuWifCRhcAFX /FzPF/E9uVIY8/FjbfrMiFrDubjzgoC6y1m7+FXeP1Q+Uy4bpzI3gppAkGodwyWVh5Er pezg== 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=5cu3HQ1b6sh91hPXvMJwlHlNXGiKZFwO5XEFpaTqLpY=; b=MVBdhWIPXP5eqRMzmrwiM3NMhewiCZ9xXA/lPpogKqSbx26cs5+JwTEmrYNcQXOAmu StwDU2A1NkRjDIyE17t5dlS5DG1WTzbEG2JImPk5v4WqQr6asvscKPSHQN7UvYcpgR4g rNwbvCSh55fAcinQG47pPnV7OtSHjTMydubQACcvP6ql75z3neRfjqzHTJdQRVZ4+FtI pKElV2Z0xbkiVN7E84xISji7F199PLVvyybLhkwHsEO4Vlbr5//5fJaRfeJ7eneDhekq fclEyZDJtf1llXcTJDt6TYeGLPYu2Za/VgPaFgStsR7LNWWAgRpxMHSA3pDwTjwUm5s0 X4+Q== 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 bd4si6505793plb.434.2019.03.08.03.46.31; Fri, 08 Mar 2019 03:46:46 -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 S1726412AbfCHLpo (ORCPT + 99 others); Fri, 8 Mar 2019 06:45:44 -0500 Received: from mga11.intel.com ([192.55.52.93]:19628 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725789AbfCHLpo (ORCPT ); Fri, 8 Mar 2019 06:45:44 -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 fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 08 Mar 2019 03:45:43 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,455,1544515200"; d="scan'208";a="129912677" Received: from ahunter-desktop.fi.intel.com (HELO [10.237.72.56]) ([10.237.72.56]) by fmsmga008.fm.intel.com with ESMTP; 08 Mar 2019 03:45:39 -0800 Subject: Re: [PATCH V1 01/11] mmc: tegra: fix ddr signaling for non-ddr modes To: Sowjanya Komatineni , ulf.hansson@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com, riteshh@codeaurora.org Cc: thierry.reding@gmail.com, jonathanh@nvidia.com, anrao@nvidia.com, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mmc@vger.kernel.org, devicetree@vger.kernel.org References: <1551504025-3541-1-git-send-email-skomatineni@nvidia.com> From: Adrian Hunter Organization: Intel Finland Oy, Registered Address: PL 281, 00181 Helsinki, Business Identity Code: 0357606 - 4, Domiciled in Helsinki Message-ID: <9787b070-e5e6-3f80-e0f9-1133529be174@intel.com> Date: Fri, 8 Mar 2019 13:44:07 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.0 MIME-Version: 1.0 In-Reply-To: <1551504025-3541-1-git-send-email-skomatineni@nvidia.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 2/03/19 7:20 AM, Sowjanya Komatineni wrote: > ddr_signaling is set to true for DDR50 and DDR52 modes but is > not set back to false for other modes. This programs incorrect > host clock when mode change happens from DDR52/DDR50 to other > SDR or HS modes like incase of mmc_retune where it switches > from HS400 to HS DDR and then from HS DDR to HS mode and then > to HS200. > > This patch fixes the ddr_signaling to set properly for non DDR > modes. > > Signed-off-by: Sowjanya Komatineni Acked-by: Adrian Hunter > --- > drivers/mmc/host/sdhci-tegra.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/mmc/host/sdhci-tegra.c b/drivers/mmc/host/sdhci-tegra.c > index 32e62904c0d3..46086dd43bfb 100644 > --- a/drivers/mmc/host/sdhci-tegra.c > +++ b/drivers/mmc/host/sdhci-tegra.c > @@ -779,6 +779,7 @@ static void tegra_sdhci_set_uhs_signaling(struct sdhci_host *host, > bool set_dqs_trim = false; > bool do_hs400_dll_cal = false; > > + tegra_host->ddr_signaling = false; > switch (timing) { > case MMC_TIMING_UHS_SDR50: > case MMC_TIMING_UHS_SDR104: >