From patchwork Wed Aug 29 07:02:56 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chunyan Zhang X-Patchwork-Id: 145384 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp339846ljw; Wed, 29 Aug 2018 00:03:20 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZ4uXpm3XNeFMG5zaXj5h9w5tMNeSjkfcCYFCdwFADYo8W67O6QxzMlbaameDPKeFMM6z6T X-Received: by 2002:a17:902:1566:: with SMTP id b35-v6mr4703102plh.135.1535526200772; Wed, 29 Aug 2018 00:03:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535526200; cv=none; d=google.com; s=arc-20160816; b=mlfx/YqB+S/CpRc6UTyWb8Z3RgpBkl0eI6Z8lXd65pxKAO9/ZSSvgA8TVUr57o19Oq 5VzWOeBttf18ThN9xI5dw6wU0zj4nzRv9rtsaEUvbrcSXJLREeQgj/MSuuQk/FL7gxBU 4fZj9sB5zOI7TPXzk36VyquMCyoeKaCLjSHps9gzNjqYxGUPijhSvznn01WctEs3Y3F6 tSNMdhLqyK6MaAO+w2lPF5XzEeATYKK+v//qvCxbfHbCT33WxHWUQqOXiC+G4fccHfSj zD31ObkyL0fiHgkFlAqfZDheZkLDjTvcO/bK6GSzkiFBiDarrCG98wGdF3uqNTis468b G/Aw== 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 t89-v6si3030701pfe.59.2018.08.29.00.03.20; Wed, 29 Aug 2018 00:03:20 -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 S1727652AbeH2K6n (ORCPT + 32 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(-) -- 2.7.4 Acked-by: Adrian Hunter 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.