From patchwork Thu Aug 30 08:21:37 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chunyan Zhang X-Patchwork-Id: 10581365 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1C5EE174C for ; Thu, 30 Aug 2018 08:23:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0EB0B2B6E1 for ; Thu, 30 Aug 2018 08:23:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 02C2F2B732; Thu, 30 Aug 2018 08:23:06 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AC05D2B6E1 for ; Thu, 30 Aug 2018 08:23:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727871AbeH3MXA (ORCPT ); Thu, 30 Aug 2018 08:23:00 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:45137 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727688AbeH3MW7 (ORCPT ); Thu, 30 Aug 2018 08:22:59 -0400 Received: by mail-pf1-f196.google.com with SMTP id i26-v6so3536864pfo.12 for ; Thu, 30 Aug 2018 01:22:01 -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=wnkKMmT7/ywpaLhHSygUL9Mw6DLIQeVe394xHakWOIg=; b=d7VvPGC+1/HFqHyXuQoPiiW4fbwXzmA9LJvbwgHtrqQ8Km2dkiskXqyIxGTQm3HvvG F1x7ra2bE2P5ghqL+fb4c6IjrH6uznBqc6GDRvoUQMC+LjFCpZB8667VUCVdGRa4nlIs EV4Vo1iM5oWZYMzPqEBhGDFaXTYbR0DJ4iLhA= 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=wnkKMmT7/ywpaLhHSygUL9Mw6DLIQeVe394xHakWOIg=; b=sC7//ko9XbxS44krKfd9qbG+CM5aL1R8Wwr259nxbbucUeEYjaeS8J1fPnKw9+u0QR xqcxH1KM82uEt9Xlqdxu/YIQV6tVn9yF7qgFw0+ieS9ntGf977pq99hu/9YYJKFT+07C KhvzjCUGN2dAfGZUzcQ8wXa5LjcPoNVSnII+wv0+lcBIYExCYEe1R7G3/nLRBBlbwnie XhpXqwNFPMcy7PlBKFmDDGHT3OTsVXobLE2JnQGY0w14k8Qscpu31a7pi3YVBfklWpCM FwOBvnBddbG+HUtqvW6Sg2BYoRcnD7oC5D8nrwK2IO+QoUqJSIra5RNJycwDVlnu6vCq aoBQ== X-Gm-Message-State: APzg51CKAI3ONteC0VemgJQPsMVuuH7oVEZGWQAbGUrXs953oT9TZw0l g9g1eRQVwDwyy44p94Nqd8hgFsBM0Y0= X-Google-Smtp-Source: ANB0VdbXykipFodsw0jNezTJBSLoZ0ll9H3eHa7+RBePHthnLdb9xicZU8tPQqt6fFu4QOTRloFaeA== X-Received: by 2002:a63:5815:: with SMTP id m21-v6mr8742255pgb.78.1535617321554; Thu, 30 Aug 2018 01:22:01 -0700 (PDT) Received: from ubt.spreadtrum.com ([117.18.48.102]) by smtp.gmail.com with ESMTPSA id j22-v6sm8224885pfh.45.2018.08.30.01.21.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 30 Aug 2018 01:22:00 -0700 (PDT) From: Chunyan Zhang To: Ulf Hansson , Adrian Hunter , Rob Herring 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 V8 1/9] mmc: sdhci: Add version V4 definition Date: Thu, 30 Aug 2018 16:21:37 +0800 Message-Id: <1535617305-16952-2-git-send-email-zhang.chunyan@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1535617305-16952-1-git-send-email-zhang.chunyan@linaro.org> References: <1535617305-16952-1-git-send-email-zhang.chunyan@linaro.org> Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Added definitions for v400, v410, v420. Signed-off-by: Chunyan Zhang Acked-by: Adrian Hunter --- 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.