Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp5349130imb; Thu, 7 Mar 2019 13:32:20 -0800 (PST) X-Google-Smtp-Source: APXvYqy1119XJOcV82c69Rl+RtnFN0YghHWvVMWdoTtyWDPqlvrp9K3RXbQz4A/fY6JXcTHNFu4Z X-Received: by 2002:a17:902:e3:: with SMTP id a90mr14697596pla.45.1551994339923; Thu, 07 Mar 2019 13:32:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551994339; cv=none; d=google.com; s=arc-20160816; b=TjSDuke3ZMbA5Zi93GxOSR9IbKrQT82KVQvGUYbhyXlLPFUQueFV7QJ5WqxZBJQz/c 5jHQkcUuvKaqjrrHIw9OZmNN3UZTNfplBQLKuX0Bky7CyaofnThWkSM8luF0j/ymwIHv Zw9WzNjOwNtoixFwH499bEAAdVfe6ZHyVYkz8bjLn82/nfDwdcfQj0Lj50aBudZ7+lsd LQJ1Z2GIM91PdKvQkWDTaE3ndXThz0QEQAVxVlM5qYUeBmQiJtanntpnaBPd0JE4iPqN mwF9IOAufbAbfj+pnTAo138GzQiCfHrmB96JnpIAL5jyIUI9cIUgpBJVcOpMwACFU2Ba 5r9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:dkim-signature:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=78jL9PSv0ZZtPP2XtpJzvXOjbVqQzaJq7FvAV1tdEz4=; b=0nYM811e8d4+4j4R+Y65D5Op0Vxkn+QiYlm1lQl0PLgUuhDInq6E19QxE0b5GmL540 KYcEwdsglaO/u2poAkUe8cCRqkE2apezfqCor3G70t6J3WIVsW+gSWaeGfhvTkVVazdd u/nIGDK6aMivmgXQY6mU+VPkXJIwc2MJoEF7gsK58GLmr4ybFFPfMMaWtscRHEe2y1S0 Atn+BfRP9pOi+B4Mkjc4eeoZeZfNOTCk/EMn8SSyDQ16nosj/5AZ3nuyzqG0ZXsM902A XXlKKcufkNiwHVV9Lo+O2ptED74CKDeQZvv+YYzzXPmTdRyt8uL7v8ItHRmKrKVzSx5w d9IA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b="DmQP4i9/"; 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 q13si4917849pll.175.2019.03.07.13.32.03; Thu, 07 Mar 2019 13:32:19 -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="DmQP4i9/"; 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 S1726259AbfCGVbo (ORCPT + 99 others); Thu, 7 Mar 2019 16:31:44 -0500 Received: from hqemgate15.nvidia.com ([216.228.121.64]:17048 "EHLO hqemgate15.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726166AbfCGVbn (ORCPT ); Thu, 7 Mar 2019 16:31:43 -0500 Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqemgate15.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Thu, 07 Mar 2019 13:31:34 -0800 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Thu, 07 Mar 2019 13:31:43 -0800 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Thu, 07 Mar 2019 13:31:43 -0800 Received: from [10.26.11.134] (10.124.1.5) by HQMAIL101.nvidia.com (172.20.187.10) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Thu, 7 Mar 2019 21:31:39 +0000 Subject: Re: [PATCH V1 01/11] mmc: tegra: fix ddr signaling for non-ddr modes To: Sowjanya Komatineni , , , , , CC: , , , , , References: <1551504025-3541-1-git-send-email-skomatineni@nvidia.com> From: Jon Hunter Message-ID: Date: Thu, 7 Mar 2019 21:31:36 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 MIME-Version: 1.0 In-Reply-To: <1551504025-3541-1-git-send-email-skomatineni@nvidia.com> X-Originating-IP: [10.124.1.5] X-ClientProxiedBy: HQMAIL101.nvidia.com (172.20.187.10) To HQMAIL101.nvidia.com (172.20.187.10) Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1551994294; bh=78jL9PSv0ZZtPP2XtpJzvXOjbVqQzaJq7FvAV1tdEz4=; h=X-PGP-Universal:Subject:To:CC:References:From:Message-ID:Date: User-Agent:MIME-Version:In-Reply-To:X-Originating-IP: X-ClientProxiedBy:Content-Type:Content-Language: Content-Transfer-Encoding; b=DmQP4i9/Z5QGCHLUqYslGtbivkmw7fx3m2nxHXhtFgqFAueLG04uMv2lMyhjrkuxT tsOVNb7fV1+3h5SJqrYMONGsaciS1nm4MUDZ+1ct+6hK/YNrgLjMzSpR3GlEgsJKXa XbGXKzPdOCbqfcW7Ek9IMt0tiArCALj5KcomOBDR28itsu92mD0hl7g3l0NQ+n+UJo rizovZ0OIANIGL59FwXK4WFfqD2STEIcQmLUrXqFqLqGlV6kA2WGZrW2tdFRLTTno7 xYpQdo2etE12I8O61rLQb6ucGvSDNzVQM33mDZPZZ1GVh865XJ0+BAa7aiC2GI2MXO X4Z6Rr9AF1Nlw== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Sowjanya, On 02/03/2019 05:20, 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 > --- > 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: I have tested this series on Tegra210, Tegra186 and Tegra194 and see no further issues. Thanks for getting this out! Feel free to add my ... Tested-by: Jon Hunter Cheers Jon -- nvpublic