Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp963445imb; Fri, 1 Mar 2019 21:22:11 -0800 (PST) X-Google-Smtp-Source: APXvYqxD43PqmDLUIDiS6eEd+CeqkUp767caNqBOhz4FJzb56ADeEF/0aJDaPIph30oTMQRFp2Bu X-Received: by 2002:a17:902:1347:: with SMTP id r7mr9344959ple.82.1551504130970; Fri, 01 Mar 2019 21:22:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551504130; cv=none; d=google.com; s=arc-20160816; b=AotEq98g6fSS/prLjqlsvioTH1Syv9ic7Q2+SkHApWn8/x4IqKVj+KzkeeUPtf4g8J 8rtiWhK9etRWrV3nv0DUzHp2DvmBVNrA6Jibxe3rgmvDNE5NXCIpC1Tquafsk05Aj45h K8vVY+3EJyb2oGr0p7Zr/AegCZkCWOhfnxEFzNs63fuM5tZ/Y9Lx8OZ63CQN3LTgmerD hPaj7VWuEyXk4NhJYdGRomP9RrNbDm3c9HuSt4kwn1yXoeL4C3FaQoj2H/d7zs7weTKQ kt1rmCGgulKfx3qFjBF0ugteVBIAG+hXYe//alIoMY9FBo9kPh3pWx+fK9x1PgtEaDy0 Vkxg== 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=Qe2T48QJX1FMDt69wX/5uHHEUnqPGEOo62jpymdGE50=; b=S6Iy50e4ZhO8eUvjMQX+5TDQoUbVrOPHt0LZB532OOx/E/HrewOvADze9hBCRgckj2 wQZgyrnWHHq0YfuJXhBSSMqerwHzXAh6UUf7iUhDj7WWPPeoC6vXqULq2cXhXExw3TZN rOL8gA4UmTpuOgUaU9TNxMIjiSajoXhETKNbO/mjU0A0HBnFmK2DRtejpRjtwGhHmScI 8gVWaXDo2bLz4xDOhGWOAJx3HkYb4HhKZ2Hd6lJ8FVelvEFDogPYPvPYoxBvZyPc+ZSm 43gIidoRPuCa05jbuJNdcm6E235Xze2X8Pcv177/w/JTtGCZ3S5vys0lYqLWJs/XOVSj qzwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=lxtcKuD+; 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 n17si21986305pff.225.2019.03.01.21.21.24; Fri, 01 Mar 2019 21:22:10 -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; dkim=pass header.i=@nvidia.com header.s=n1 header.b=lxtcKuD+; 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 S1727234AbfCBFUb (ORCPT + 99 others); Sat, 2 Mar 2019 00:20:31 -0500 Received: from hqemgate14.nvidia.com ([216.228.121.143]:9806 "EHLO hqemgate14.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725300AbfCBFUb (ORCPT ); Sat, 2 Mar 2019 00:20:31 -0500 Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqemgate14.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Fri, 01 Mar 2019 21:20:39 -0800 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Fri, 01 Mar 2019 21:20:30 -0800 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Fri, 01 Mar 2019 21:20:30 -0800 Received: from HQMAIL101.nvidia.com (172.20.187.10) by HQMAIL101.nvidia.com (172.20.187.10) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Sat, 2 Mar 2019 05:20:30 +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; Sat, 2 Mar 2019 05:20:30 +0000 Received: from skomatineni-linux.nvidia.com (Not Verified[10.2.172.134]) by hqnvemgw02.nvidia.com with Trustwave SEG (v7,5,8,10121) id ; Fri, 01 Mar 2019 21:20:29 -0800 From: Sowjanya Komatineni To: , , , , CC: , , , , , , , Sowjanya Komatineni Subject: [PATCH V1 01/11] mmc: tegra: fix ddr signaling for non-ddr modes Date: Fri, 1 Mar 2019 21:20:15 -0800 Message-ID: <1551504025-3541-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=1551504039; bh=Qe2T48QJX1FMDt69wX/5uHHEUnqPGEOo62jpymdGE50=; h=X-PGP-Universal:From:To:CC:Subject:Date:Message-ID:X-Mailer: X-NVConfidentiality:MIME-Version:Content-Type; b=lxtcKuD+qW5/YBbhFQsOJCjhgJ5hQLM3klmDJR0v1JK69DAZQMJmJhBn0LtZ7X/3k 14wtgBydG+RPtAtxPRmdBZmW2LNEAyMjuxR7/ruiSsTvjdtKi0oTT5hGZSaoEWFo/r jMYmqj//fEEPYDELTq74RHi94V78nkG2vgypOGRprA1rNqmZ4N+Ya5Q7u4Qqi5bsag HnRsKtnJA3agieKtksQcwpJ3pm5MLab/ElebnAa+xVeIIy7H/T9TqI72cgGQmiOBkD GYiUmK+SmdnZ+cC1xfMvAknFuRqA2/oZcDpmAHma/oJVn9jb1ue6w8EruetyMVq3Io EupwgF+PDJkxQ== 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. 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