Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp2062394img; Sat, 23 Mar 2019 21:46:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqz1MwlGl+1VFYYQD1NVgHErmyRZLNXTs/M7Hco/T8LgTPOsbtXcXLtRbhkm33pzFsCMsx4C X-Received: by 2002:a62:e08e:: with SMTP id d14mr18126262pfm.16.1553402773113; Sat, 23 Mar 2019 21:46:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553402773; cv=none; d=google.com; s=arc-20160816; b=ZswyW0i1qttuS8wR9bDC0jo5YNZi7HOYWp2BXAs166FNN5UrVE4fDoP3PCXzqGvC43 /qTEhyuY9fi7Ns/Iv+GeodXrXfp07jywZsbgeyJRmHpfYBqrhvyUkha416l9TlRG5hEq +5qBf1uU681kX2/zwCxh2njRG/Mx5mTYk9xZc9t6gnynoMi+BT45xbjhWIK1q7oZLNrk 54vfY3oLrj2GdN6SWBIls7oLpHjqy2ZcVluyy9rPo+H+mLMof79TITsZ4RP34fiRYwch PzeO/Z1Iy06xFrdq1nQsEcKqmxY7LrPvA/T4ylM5HURpLrSjHJxoE2fzfDwspAkQlvpy g1zg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:dkim-signature:mime-version:message-id :date:subject:cc:to:from; bh=hyG6nL5bNLc49xU60zbU/EdhEZ33+W/EFOQiFZDWv4I=; b=kNLAzGd/n5ixoz78j+gCJ3d3DiwO+V+o1wxVAlbtDKRd/EDyi6rZC15CCjtM/gnCUN pahq9bQtXz8JzoY57j3Wmt8YfBES3sUGdOywYxNcCGT1GzQrjjzUHG1HNqJJGMvzOCUq QTHWp5zVSIiASn37KEhB2ZkfhhfS2Us80ADglwSpokMF+gfztMmiazs2NCVZkGDymNbr 0bxNpPGz+iJlm2WbPkhlltdNVZTKgowPuoHbH+E1bEHmSaZ+vERLD1rgYtxpSVJZpow8 /ojU/LKg4u+T3mpXZYIaesoRbvg2XEvATMLv67JgzgMvXw6HbISoVMOt97B6ytK2V4L/ W7qg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=mQnM2Cnb; 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=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n25si10335075pgv.283.2019.03.23.21.45.55; Sat, 23 Mar 2019 21:46:13 -0700 (PDT) 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; dkim=pass header.i=@nvidia.com header.s=n1 header.b=mQnM2Cnb; 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=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726877AbfCXEpP (ORCPT + 99 others); Sun, 24 Mar 2019 00:45:15 -0400 Received: from hqemgate14.nvidia.com ([216.228.121.143]:3211 "EHLO hqemgate14.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726121AbfCXEpP (ORCPT ); Sun, 24 Mar 2019 00:45:15 -0400 Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqemgate14.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Sat, 23 Mar 2019 21:45:17 -0700 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Sat, 23 Mar 2019 21:45:14 -0700 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Sat, 23 Mar 2019 21:45:14 -0700 Received: from HQMAIL111.nvidia.com (172.20.187.18) by HQMAIL105.nvidia.com (172.20.187.12) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Sun, 24 Mar 2019 04:45:14 +0000 Received: from HQMAIL101.nvidia.com (172.20.187.10) by HQMAIL111.nvidia.com (172.20.187.18) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Sun, 24 Mar 2019 04:45:13 +0000 Received: from hqnvemgw02.nvidia.com (172.16.227.111) by HQMAIL101.nvidia.com (172.20.187.10) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Sun, 24 Mar 2019 04:45:13 +0000 Received: from skomatineni-linux.nvidia.com (Not Verified[10.2.168.175]) by hqnvemgw02.nvidia.com with Trustwave SEG (v7,5,8,10121) id ; Sat, 23 Mar 2019 21:45:13 -0700 From: Sowjanya Komatineni To: , , , , CC: , , , , , , , Subject: [PATCH V4 01/10] mmc: tegra: fix ddr signaling for non-ddr modes Date: Sat, 23 Mar 2019 21:45:18 -0700 Message-ID: <1553402727-23130-1-git-send-email-skomatineni@nvidia.com> X-Mailer: git-send-email 2.7.4 X-NVConfidentiality: public MIME-Version: 1.0 Content-Type: text/plain DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1553402717; bh=hyG6nL5bNLc49xU60zbU/EdhEZ33+W/EFOQiFZDWv4I=; h=X-PGP-Universal:From:To:CC:Subject:Date:Message-ID:X-Mailer: X-NVConfidentiality:MIME-Version:Content-Type; b=mQnM2CnbMyNJ5VmmitEAdkHwjawtMowyOgXTbXSiAK0nrRK5IDQZBEOjJ+CWWbSRb BrGieSIMu7vccxLMQhebNoPE1sFv7UQ02AIYrXge/z6IxRMPux6fosIEzUJBvfCZGR N1Yn+xhiOeuAbALs6qgEpCuZ9xBGRoC47Wl9FSk7RxhnZ4iVcn5Ps+m6LSsQ7bubty 8R8PyrDRciR8uHvxPBvEQe2L2RZPirmhN7sbpRc6Eyluazz1MMe1BIittNGGlkMeOp Jh0p99iCoRPmnRIFGKe7kPkB/YAnv/OZ3uMGDeOHCdufs4DuAeI9jdvxM7ro8VnfoV 74L9acLfymfCA== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Tested-by: Jon Hunter Acked-by: Adrian Hunter Signed-off-by: Sowjanya Komatineni --- 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: -- 2.7.4