Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp307609imm; Wed, 29 Aug 2018 00:05:08 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZ8DSGKpfM7IjQ/DTmwm/eFJG7hRjXHfkhBMM+img65OdUJcRJzhI3dyyVS3RlnXvWPthDE X-Received: by 2002:a63:7b4b:: with SMTP id k11-v6mr4680515pgn.64.1535526308526; Wed, 29 Aug 2018 00:05:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535526308; cv=none; d=google.com; s=arc-20160816; b=FkmyG3KyUtkFjgfSzljvDXNBbujGbK5sRommnH5B6jsuwEYTWad6P+4mCD8Mvi2S3B 3PSmRKEXWdLxsmMGkzcQDJFh6oxWcYu2jIR2Osg/ZpVJsxLHNUq9HUg79Us5rxwveIJo hTsVhCY0+TQ19yyZBZpCfIR6EWzAo7CQ2GTMYnkmPql/7/Wl9N8IeWRcUtP6Bcr0xlTf aobzYdVqRZtVsSUn/ZH1hTOTBc8h2g7+utMPagIshUSrdD4YrIK+A0YVGfy//fMV9Pf7 sw3IkhSuIznLlPnAhwkxi+bOGhZOx9N1CTXvcSt1IYtkIH0fG7PPeM+aikHBc03p+Hwy Qinw== 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=++1fRQNMnXH0A0SYZtvAp1/7snJJJbIXHOql7gVNj04=; b=K3+Dy065aS16soEb/5ZHc3N4xNDwBNbEsz7UWcEtC1ALELYGggAhMIu8Fo6/+QzX6B ib3oWulLI/vy5SSijKeq6KARo61bQGSKjQedenX39XkOLqj93g7TxPPO+NPubgVToRNr nP5ustVHAHGvDjpjf8E+DsrVqBe4QWt69mTGcKX8AocrmLd01DwBAHBKpCLVNTR5mqMR qAi1OLizBabbKXV2iBjR9WbJ85TXK6NLQcKWFJ4oLUCypoBRE1jIhyGUdi1krWxL1Y7l oKgcV2vBJLvEBASq0pa441vvzh1c4QGtPzeDs4WR3TP9cqjlII7V9Pjxmy/1hGfTGV0m T9xg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BOj+JRQH; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h36-v6si2948282pgm.125.2018.08.29.00.04.53; Wed, 29 Aug 2018 00:05:08 -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=@linaro.org header.s=google header.b=BOj+JRQH; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727645AbeH2K6n (ORCPT + 99 others); Wed, 29 Aug 2018 06:58:43 -0400 Received: from mail-pl1-f196.google.com ([209.85.214.196]:42606 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727625AbeH2K6m (ORCPT ); Wed, 29 Aug 2018 06:58:42 -0400 Received: by mail-pl1-f196.google.com with SMTP id g23-v6so1880038plq.9 for ; Wed, 29 Aug 2018 00:03:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=++1fRQNMnXH0A0SYZtvAp1/7snJJJbIXHOql7gVNj04=; b=BOj+JRQH3cjH6wss3IOQ35mX1jeAxamz9/uZJmdsbxWmm8KX/Rp3UoDa1j1JhJRtmq 3NEjRJjtNz6LmV4aE689SdAkmmOZ6AUknrsB0demBYZRj3AF5mzdXvaRRaYk9dVkjhdH ExNN38rlF0LpYG3eCiIpXP/GnYUrpuIag7HeA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=++1fRQNMnXH0A0SYZtvAp1/7snJJJbIXHOql7gVNj04=; b=SMo8Y8fHR4S785VK5819o8J8RaGMqNy9gdj0FM0FW+ojr+4B4BkltkFl4XucJKTKbx Qx/RT4Ehx6eeFbHraaA5P/njH/9D8PQc6ehkPScr5EOYMSlRKmqBtLw0nC+xQN3TBI2J Jam4Yfckb0AtkJDC09daq2H2wdiIdFM55D0A/ub0PAwQWTPKG5j1z926Yse4ehccUYAd 8oT5B+K/9PCbhFrDT9NHmeOyTvBlHTzSC1SkvgAZgBG2FaTSC+WrFthCWc/jg8zlQISv WiO80JH4lAlErh2MvkXARbUynvCdMLmpVLoUwX9PdSyoj0j5Ox1SxfwEaoEjzScxmffw p0XQ== X-Gm-Message-State: APzg51B4W8cuRd1UkC0C2VihQbXxTT65//VAiMQhjdDVswMBNfmvs3oe lhqBcSQvpKvCEC+CwwPAYqHI0Q== X-Received: by 2002:a17:902:1ab:: with SMTP id b40-v6mr4825100plb.55.1535526197764; Wed, 29 Aug 2018 00:03:17 -0700 (PDT) Received: from ubt.spreadtrum.com ([117.18.48.102]) by smtp.gmail.com with ESMTPSA id d81-v6sm4317342pfj.122.2018.08.29.00.03.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 29 Aug 2018 00:03:16 -0700 (PDT) From: Chunyan Zhang To: Ulf Hansson , Adrian Hunter Cc: linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, Orson Zhai , Baolin Wang , Billows Wu , Jason Wu , Chunyan Zhang , Chunyan Zhang Subject: [PATCH V7 1/9] mmc: sdhci: Add version V4 definition Date: Wed, 29 Aug 2018 15:02:56 +0800 Message-Id: <1535526184-32718-2-git-send-email-zhang.chunyan@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1535526184-32718-1-git-send-email-zhang.chunyan@linaro.org> References: <1535526184-32718-1-git-send-email-zhang.chunyan@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Added definitions for v400, v410, v420. Signed-off-by: Chunyan Zhang --- drivers/mmc/host/sdhci.c | 2 +- drivers/mmc/host/sdhci.h | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index 97e4efa..01bf88c 100644 --- a/drivers/mmc/host/sdhci.c +++ b/drivers/mmc/host/sdhci.c @@ -3508,7 +3508,7 @@ int sdhci_setup_host(struct sdhci_host *host) override_timeout_clk = host->timeout_clk; - if (host->version > SDHCI_SPEC_300) { + if (host->version > SDHCI_SPEC_420) { pr_err("%s: Unknown controller version (%d). You may experience problems.\n", mmc_hostname(mmc), host->version); } diff --git a/drivers/mmc/host/sdhci.h b/drivers/mmc/host/sdhci.h index 732d82f..dbd48a8 100644 --- a/drivers/mmc/host/sdhci.h +++ b/drivers/mmc/host/sdhci.h @@ -270,6 +270,9 @@ #define SDHCI_SPEC_100 0 #define SDHCI_SPEC_200 1 #define SDHCI_SPEC_300 2 +#define SDHCI_SPEC_400 3 +#define SDHCI_SPEC_410 4 +#define SDHCI_SPEC_420 5 /* * End of controller registers. -- 2.7.4