Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1390017imm; Thu, 12 Jul 2018 00:40:48 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdKR3GKu0kQO7UHjZYmESddmGZIUm2hjI86/okiNSuKw4VF8QLTrQo5WFh++1YSGHRzixaC X-Received: by 2002:a17:902:3a3:: with SMTP id d32-v6mr1117923pld.294.1531381248829; Thu, 12 Jul 2018 00:40:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531381248; cv=none; d=google.com; s=arc-20160816; b=h+VvXWC6e9fLYORl2LZHUg+VhZgCeCe2TIGClPQJB1XknqzNq5XyEYNra7FYme2hkN TzbaLfBv4J1n2b1U26mKde/jPA+ZKTRtdqmtOf6yocgcNyxZ02sLWnmz+dvmWPjYsp7Q iCjvQcL1ATeaIBtqrLLvyDs2lqXeMHQIdfCgwSCmpBxo//md18dUPo4iaFn+txOkj13R 3R9k0rgc93ybpRRgb8RqAWkNxks85Jo6JfMKm6oLUzArCu/ZwCLf8ugSclRTAzJBcCil gz87M5eBPlpqjzprEm4+2Nyi6y3regPnUnYWdXeFKxLM6ho/rQaOUEF8d44CCcP6tStu HUiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=tYuHM3pVoNieS1qwqC71fLNOH8IVVKrPY0Be3diyvdw=; b=VxBbExTc1+qvILg9qrW1+ZZ9CECxe0ZR6gmpqh9HhlkKSIqB20udlBKPbGSjt3xHGe lFWOOWjTJPqn4ul60GVASz5IvuCdEGYh/iaC1ngVLG+StZhenv4UZA/ues3mTyjbbwyg ecC6oDlfYvXEr8nstZqwlyKMrq82YYRpQxiw+bMe7VwzbPLzbcPLg6282Zk8vAapbmET dj+01NIH8yRt3etLPpayc1lGlwyqzWB2NBK10TXEKBf9pZC5Kz8TXzhX1FImxmh/wkb/ PAC+ip2TMjYB5f37GZn6QqJ05FjIvHiAMMTywwscPnORR+A+JPSasQtGvtlJrDlwdSed LKOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@agner.ch header.s=dkim header.b=LprCxVY6; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s65-v6si20186020pgb.486.2018.07.12.00.40.33; Thu, 12 Jul 2018 00:40:48 -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=@agner.ch header.s=dkim header.b=LprCxVY6; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726888AbeGLHsK (ORCPT + 99 others); Thu, 12 Jul 2018 03:48:10 -0400 Received: from mail.kmu-office.ch ([178.209.48.109]:55522 "EHLO mail.kmu-office.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726474AbeGLHsJ (ORCPT ); Thu, 12 Jul 2018 03:48:09 -0400 Received: from trochilidae.toradex.int (unknown [46.140.72.82]) by mail.kmu-office.ch (Postfix) with ESMTPSA id 1AF975C21A4; Thu, 12 Jul 2018 09:39:20 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=agner.ch; s=dkim; t=1531381165; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=tYuHM3pVoNieS1qwqC71fLNOH8IVVKrPY0Be3diyvdw=; b=LprCxVY6zojm7G2VCvqCd7Hwr+ExMjGwhahvldQga4cOmgv2Mke0GKO8blog3HCrGgKw8X mnjK6/vaQcDnG0UMgeFGxfJGr6dN/wgWfaoIoVv7uc69HGSGjPjp/wZiDpdpMoOXKVDn+B eFumUjUmIoCiR443bFCqwFeiaHQ131o= From: Stefan Agner To: adrian.hunter@intel.com, ulf.hansson@linaro.org Cc: thierry.reding@gmail.com, jonathanh@nvidia.com, marcel.ziswiler@toradex.com, linux-mmc@vger.kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org, Stefan Agner Subject: [PATCH 2/3] mmc: tegra: fix eMMC DDR52 mode Date: Thu, 12 Jul 2018 09:39:03 +0200 Message-Id: <20180712073904.4705-2-stefan@agner.ch> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180712073904.4705-1-stefan@agner.ch> References: <20180712073904.4705-1-stefan@agner.ch> X-Spamd-Result: default: False [-2.10 / 15.00]; TO_MATCH_ENVRCPT_ALL(0.00)[]; BAYES_HAM(-3.00)[100.00%]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[text/plain]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_SEVEN(0.00)[9]; FROM_EQ_ENVFROM(0.00)[]; DKIM_SIGNED(0.00)[]; TO_DN_SOME(0.00)[]; RCVD_COUNT_ZERO(0.00)[0]; MID_CONTAINS_FROM(1.00)[]; ASN(0.00)[asn:6830, ipnet:46.140.0.0/17, country:AT]; RCVD_TLS_ALL(0.00)[]; ARC_NA(0.00)[] Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Make sure the clock is doubled when using eMMC DDR52 mode. Signed-off-by: Stefan Agner --- drivers/mmc/host/sdhci-tegra.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/host/sdhci-tegra.c b/drivers/mmc/host/sdhci-tegra.c index 137df06b9b6e..888a1ad511db 100644 --- a/drivers/mmc/host/sdhci-tegra.c +++ b/drivers/mmc/host/sdhci-tegra.c @@ -228,7 +228,8 @@ static void tegra_sdhci_set_uhs_signaling(struct sdhci_host *host, struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); struct sdhci_tegra *tegra_host = sdhci_pltfm_priv(pltfm_host); - if (timing == MMC_TIMING_UHS_DDR50) + if (timing == MMC_TIMING_UHS_DDR50 || + timing == MMC_TIMING_MMC_DDR52) tegra_host->ddr_signaling = true; sdhci_set_uhs_signaling(host, timing); -- 2.18.0