Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp1319242imc; Mon, 11 Mar 2019 11:03:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqyXPCy4uP9bdEezJaqiRQb2i8MduAlt38PrzmiGVDyDXZlwZjSEztFDH4Vz90ZIkyBy/+B0 X-Received: by 2002:a65:628f:: with SMTP id f15mr31373663pgv.410.1552327406115; Mon, 11 Mar 2019 11:03:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552327406; cv=none; d=google.com; s=arc-20160816; b=VsGK3y9RVM0KNMYq0oQRtkjlyzu4jbMy6jd90Io+lGVfLDGG4iX1GpABhdhkjUdcHg 3WQUcwn6YolPSZ3Ed8CCjCEU2yz/V2vDh3RLly1dP1yklcLkmWL9rn679SiyfVDisSqY 5owGTnL+lQlNJPKmVTW9XUjbi+a44XvE0fJKjZUkudxax8m3yvuNFh2+tutGNYdUXfTN LKUq+/le7n+2ctfleYGS+t5Dgf29XlvQ1pA5si218r8JGctc+DKcPkM3zDz9IClJKPGn XpidHAeeb23JkcUcBgQulMnKNLfvzJBZIM2uQEHgbi1NW9Vp1U97uf6xJlIWfMlNyTsz +A2g== 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=QhD0VqCYxHUaghb+4a7og1pElqoSM3Bns5YQQ3tQ4wvupzsqsjvY2CsMfxfFbf5hYH bT3PpCHSX0ACTQRs6hBtr1W24gjcyeJwzM2z7FKTq6h1iKhwxUStcF6LFxEobm9DthYQ NO7vXVdCC9JjBuMBbGBeL/m5XOGFVrMGFrSs3V4StLfKwgjVYI+fJLX1IYzH0yG1dcJ+ C0O4HMYwHPKAOn2l5JYvi8LQvJ0p67CrDi1YU0Ws5Of7vfCOKjzY8pBFDgZP3/5tWDX3 VdvxdbOpSZDDVtNg5TBJxdI8rLyg6JfrJH5RZNDKenF+bC4u4vp9J4OpxTkSmmj86H3+ ttQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=Uif9OQr4; 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 r10si2555614pgp.422.2019.03.11.11.03.09; Mon, 11 Mar 2019 11:03:26 -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=Uif9OQr4; 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 S1727915AbfCKSCm (ORCPT + 99 others); Mon, 11 Mar 2019 14:02:42 -0400 Received: from hqemgate14.nvidia.com ([216.228.121.143]:9758 "EHLO hqemgate14.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727008AbfCKSCm (ORCPT ); Mon, 11 Mar 2019 14:02:42 -0400 Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqemgate14.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Mon, 11 Mar 2019 11:02:42 -0700 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Mon, 11 Mar 2019 11:02:41 -0700 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Mon, 11 Mar 2019 11:02:41 -0700 Received: from HQMAIL101.nvidia.com (172.20.187.10) by HQMAIL103.nvidia.com (172.20.187.11) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Mon, 11 Mar 2019 18:02:41 +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; Mon, 11 Mar 2019 18:02:41 +0000 Received: from skomatineni-linux.nvidia.com (Not Verified[10.110.103.53]) by hqnvemgw02.nvidia.com with Trustwave SEG (v7,5,8,10121) id ; Mon, 11 Mar 2019 11:02:40 -0700 From: Sowjanya Komatineni To: , , , , CC: , , , , , , Subject: [PATCH V2 01/10] mmc: tegra: fix ddr signaling for non-ddr modes Date: Mon, 11 Mar 2019 11:02:30 -0700 Message-ID: <1552327359-8036-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=1552327362; 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=Uif9OQr4GxsnnHw8J8F+zVWoQOemuKx9tqoAOg4mxvwPlBESbF5P1U74ezfS2e57y yU2EZ71jleL2jyePwNZea+dTi9jM0oDor2XZ2u6EVGVoEQdEyqLTn2g0R6KMd/80HC +K/0xjYgAv4nL+mdcqSpmjAJRqiRM3qTi1xcEEj7LSdJYyaEHIMiVO0o0i1OOd4Iou c81f2Q13rwbb28LTAVz1VClr7vnVc6538XI3C+zqFOlTRhw4HC4IvIXSBrydYVW2q0 WJNuyoQDKtUROtUC8VJXTctOGcM7mjMznAD5TqPPlGVQiAR5MBllX1gOcOQC7Yu73f P0/F6e+cx0UFQ== 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