From patchwork Fri Aug 24 09:20:20 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chunyan Zhang X-Patchwork-Id: 10574939 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 7678614BD for ; Fri, 24 Aug 2018 09:21:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 677FE2C1C8 for ; Fri, 24 Aug 2018 09:21:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5B5DD2C767; Fri, 24 Aug 2018 09:21:07 +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 DDC612C1C8 for ; Fri, 24 Aug 2018 09:21:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727571AbeHXMyf (ORCPT ); Fri, 24 Aug 2018 08:54:35 -0400 Received: from mail-pl1-f195.google.com ([209.85.214.195]:44453 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727490AbeHXMye (ORCPT ); Fri, 24 Aug 2018 08:54:34 -0400 Received: by mail-pl1-f195.google.com with SMTP id ba4-v6so850502plb.11 for ; Fri, 24 Aug 2018 02:20:49 -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=UBJImci8KZxRNTfmSw+GGOxU7hKy71vSboxL1xbPDzw=; b=ABaxn2j6d871/4FwgGuV1TemB+Sy+ByjCZoLtNYaOCY4r65N/0yqbPdRx4k7WA2VTx DiBxKmnrRFZvVdhWUJiJsDfnU8/6V5jp9EjHBuaUGH5iw6nKVxyLy9uI6Amvq6uu4t/J Ui9en7q0CdLA7oA8NkqgV8s8dNaFj2UWTF5uU= 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=UBJImci8KZxRNTfmSw+GGOxU7hKy71vSboxL1xbPDzw=; b=PuVClN2uM2LL2AuzHjXeyhHYFKzFOKvZajgyvCRCQWXjKLSi3t/fzDEAoj4KD2e/9Q YcceLCfC22FFRwOJNZxJ55Mn3EsVGMM3CuNwJtKaJ05xRe/9wM+tv/imubOD8K0oMv/g SFoyDN34DjLxGZP72YGwdTN1CZDl4bx3ryVQ3Y2f7JghJf0wffV3OzrmFapoMWcTnRUZ lcG9uEAWDfLy+OgLwTxwJ/WB+yZ8/cjtloLMxG1kQO3uQnmOM3WAnVQzP9iv8UcX9PE0 31XXnRR9Dy3jCCFvdzTAQjUX34lDmWFo9sWo0t6zSA/7iUjXtWQ9S5pV9thhaZM8o2Kn 6VKw== X-Gm-Message-State: APzg51BjSDK+tuGfut/+/sUtT55G+xn4kAo01hyBrFxgRi9noXZkZ3gj rzzx6cNM2v8JKd9dWtXqOnH6Qw== X-Google-Smtp-Source: ANB0VdbNtrXVU2u4R1AKvvO5pGnMVjFriIlqfCDBWqGF0ZWn8gBIGFz5Y6j5q4wkfvPUb98i+yEuMQ== X-Received: by 2002:a17:902:7683:: with SMTP id m3-v6mr886597pll.255.1535102448934; Fri, 24 Aug 2018 02:20:48 -0700 (PDT) Received: from ubt.spreadtrum.com ([117.18.48.102]) by smtp.gmail.com with ESMTPSA id g6-v6sm9520314pfb.11.2018.08.24.02.20.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 24 Aug 2018 02:20:48 -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 V6 1/9] mmc: sdhci: Add version V4 definition Date: Fri, 24 Aug 2018 17:20:20 +0800 Message-Id: <1535102428-20332-2-git-send-email-zhang.chunyan@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1535102428-20332-1-git-send-email-zhang.chunyan@linaro.org> References: <1535102428-20332-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 --- 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 8793340..f70135c 100644 --- a/drivers/mmc/host/sdhci.c +++ b/drivers/mmc/host/sdhci.c @@ -3501,7 +3501,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 5db81de..7ae95f8 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.