Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp3319051imc; Wed, 13 Mar 2019 14:48:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqwXVONx9rMstXfyqGY4304gz2UjHWJORPUUpnbkhpA0H2kKQ+gdyKZvN9Sc+IR7ja42HBdU X-Received: by 2002:a62:4817:: with SMTP id v23mr45469909pfa.81.1552513731071; Wed, 13 Mar 2019 14:48:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552513731; cv=none; d=google.com; s=arc-20160816; b=Moj3flQDDzEgKbUY7u4y5J6hdWANheZ6pePUx4ZuUPHjJnpbAq00rbb4QkpGkesX1w WHn/+rSoICw14psTP3OppAd3XNSXjktrSi9K6KkIO+jCw3oy8Xgu7ItAQzPTd1seKt7h GJVD5xOQ5j6XnOHqagdZS4ghk4sCw13JxttzgJCYG29VjiNbcuNhOPKdt0u7PfdEgct0 zITrp5uGCzTeFfZUO8gyFYEejqRaBdnLjhpgE9KIbzQQMSZOqlTY2pCnAm3cbWxM1dBw qjCpcy8ntcbPENW7X9vTflcaU7a00jtxHRjpMWnMEZBr3ybULOvuwwYeNoIXSuv7cnfG 7rGg== 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=aeps7F2oaxIaUqaEClpRTv4SlqhrXHitxCTo9STeAQ4ZtzoAij6/iHOv9VWmBmSQMe +NEs1nADOiHc5fBmIdg7tuYqQEO/+65/HUTBp9ZNsBLNufqVlneIvlp3iIkvnBX+DGad 3w+KuwotGgb/P5WVG6j3Ix+R+bYbYd2ECiv2K5kouQbWMCjGzaQtM98CExpHs/JXYSME +9DjmEKd1g6V3NsZrax6FZiTneZzzYbrB3ati5TJKJdXSYNvIlfLHNaa4q78RAv6Aydv /Al861L5A0/+G1eiDyknr+AQ6sVKkygEs9bRi1B0K5jGcPL2nyHW9e8VnWPnmWoIUdZV 9fHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=QjWT4wBb; 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 s4si10958620pgh.540.2019.03.13.14.48.34; Wed, 13 Mar 2019 14:48:51 -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=QjWT4wBb; 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 S1727420AbfCMVp4 (ORCPT + 99 others); Wed, 13 Mar 2019 17:45:56 -0400 Received: from hqemgate14.nvidia.com ([216.228.121.143]:1269 "EHLO hqemgate14.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726255AbfCMVp4 (ORCPT ); Wed, 13 Mar 2019 17:45:56 -0400 Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqemgate14.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Wed, 13 Mar 2019 14:45:56 -0700 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Wed, 13 Mar 2019 14:45:55 -0700 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Wed, 13 Mar 2019 14:45:55 -0700 Received: from HQMAIL108.nvidia.com (172.18.146.13) by HQMAIL101.nvidia.com (172.20.187.10) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Wed, 13 Mar 2019 21:45:54 +0000 Received: from hqnvemgw02.nvidia.com (172.16.227.111) by HQMAIL108.nvidia.com (172.18.146.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Wed, 13 Mar 2019 21:45:54 +0000 Received: from skomatineni-linux.nvidia.com (Not Verified[10.110.103.74]) by hqnvemgw02.nvidia.com with Trustwave SEG (v7,5,8,10121) id ; Wed, 13 Mar 2019 14:45:54 -0700 From: Sowjanya Komatineni To: , , , , CC: , , , , , , , Subject: [PATCH V3 01/10] mmc: tegra: fix ddr signaling for non-ddr modes Date: Wed, 13 Mar 2019 14:45:43 -0700 Message-ID: <1552513552-23423-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=1552513556; 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=QjWT4wBbJ6r9f4wL0kyr9VZMqC6Zrsx3m6aMmiSozctyEXoYwFCd1a7WC7qlTYCYz JBGsFNKsSNGJScG/Li39WyLTQrTRqt0FTJe9S/Bxvb00NoKsfPgtLkMLnQkZAsJtBf jEsH+S24HrimslPxcy/UKg988T5tGMQ7nIVPmH3bvTgPsMQ+UCc59GlHz+0eMUJsFz KQevnW7Yy+xKt+3oFkAJEfiEgZZuOw2bXwUqOoS32GOi+EnFdlVtWEdlsDiPYRTXMc uOWTKCmx5+0kkA1zMldtNGiCPApVzqcq8ENk4vj8BVULUhENjRslsL1pfLT3FG/1el a/WL41cndtg0g== 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