Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp396284imm; Thu, 30 Aug 2018 01:23:19 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZyStaMVlBjQPPzmxG+Fau+GMFPhl93D7oe5aCR2f/FmUN+3RxaL9u6Ezq/db+1jG57ewcV X-Received: by 2002:a65:5144:: with SMTP id g4-v6mr8570044pgq.21.1535617399039; Thu, 30 Aug 2018 01:23:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535617398; cv=none; d=google.com; s=arc-20160816; b=oaZkHLIr4bVN+i/7yIcazG4EIRsDMmz7TlZIG80/QV+9QbIxo1TSdcmegHUWvg4k44 PxHL1oJCQAEIGi6qJKqVS6DdBcczNVu4XfNIBPCcMGQ9K/2KmJYAUGCpd03nMd+MUh+B 0PdShwBc4imTmznQF0wnUo7JAWpSbjeyehTY/mhNO+dlKQ+QtYqPQKoXJ3mrNL2mIk9C SbOK7aBRcQF5XvHMJcVSKzvTGAVLjqk0UbOXDDAXU0cBfrSxT918CEPch4JwKLcGYCVY 8HdgHfNc2tMaiIyBSHscGOR1d+pwt5K2y6SYm9hWNxu+w1Z6t+C15K3eEexhyYmanqlV wzzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=QWmDPEdLUpyWw5hHCL9ae0thTLkKN/kT21prhaAp1tI=; b=EwQ0zZIwehRviGotCSI7nyYutPekhQsu2nocNUGGL+glCAbotAOM7lu1hBZrMQZxIh sqXehuqxLs+LvsQ0Q8RIQAgrCil2TpadJWOdDmCEk2AocQa+Aum9Vc3Xwwz0UAxKeZ8D JEjgnrl8Mz4M/gAUlzbAU/kQ3O8Leki7/1kobcpmGLLZAzaWEKy8Pi0KkBbH299pgXKa Xf2ur8jIGqAofckhdNS9lwUExPlgaF3QfHdP7U7QSvFovGUWy3w1VMDVu3gxR8YhxpUh VQ1o95w6okrg+qTFSMmQjPZG9JFBhr0KWbzO4tHuWPIa7ivVQqUQ/bha7j2lZlyjXDYU Xzpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EIRTyWY5; 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 w12-v6si5720110pld.362.2018.08.30.01.23.03; Thu, 30 Aug 2018 01:23:18 -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=EIRTyWY5; 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 S1727841AbeH3MWz (ORCPT + 99 others); Thu, 30 Aug 2018 08:22:55 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:34916 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727688AbeH3MWz (ORCPT ); Thu, 30 Aug 2018 08:22:55 -0400 Received: by mail-pg1-f194.google.com with SMTP id w8-v6so1979616pgs.2 for ; Thu, 30 Aug 2018 01:21:57 -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; bh=QWmDPEdLUpyWw5hHCL9ae0thTLkKN/kT21prhaAp1tI=; b=EIRTyWY5uZjfZCI0IlZhpxZOdQkcWVx0Euxcq86o0/YCIQabFXJgQDZtz6GXQT4Xqh AL2KCZPmfUjYuiUnAN2g23cg4Ffkpgf5vvlkc+7XLN1LYVIW+30rNLpMTBXs/GW6BBKE MoN1mHtsdB0TcFJqqqXmBrU2bmUsHP4yA2Ea0= 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; bh=QWmDPEdLUpyWw5hHCL9ae0thTLkKN/kT21prhaAp1tI=; b=sa175xG0MXmAQtTu68n+PU8vfXOmbhRBvgXDCgFL3PpqXS2I8Y4gn9j1JmycZwEYam folStPRg9nXWC0PVpJnWfGeQZU9qGDYf3VEQx3U54OUIhYcp1rUxGJhRRWRJ6f9ZI8Kk wiAsPRyzMhCVVOrs+/j3LGslwbirrH9bXYKttw7rrxS/cYvljA0IyBNqOsquUB3/uU2I w8wO6Oz63GoYbcLToBGXaYZJZ6O/6JrMpmGkDQ1tFvqNYJBzdxzqlJWFp84hU9XfrcEC fFVMBbIZZE6ic8wUe7PrMPZ5gFMoq4t0d72B4Ro1BAkWRwx2WufjRi9J+kLIGwFLLo7b zcFw== X-Gm-Message-State: APzg51BEocGOnh/DHQEc7YPoFV2nQhJswPzfdgfA9chFU/QudrTyqSPk 02ieyc95nbf8CG+/kFIH+PybOg== X-Received: by 2002:a62:cd3:: with SMTP id 80-v6mr9585491pfm.184.1535617317198; Thu, 30 Aug 2018 01:21:57 -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.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 30 Aug 2018 01:21:56 -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 0/9] mmc: add support for sdhci 4.0 Date: Thu, 30 Aug 2018 16:21:36 +0800 Message-Id: <1535617305-16952-1-git-send-email-zhang.chunyan@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From the SD host controller version 4.0 on, SDHCI implementation either is version 3 compatible or version 4 mode. This patch-set covers those changes which are common for SDHCI 4.0 version, regardless of whether they are used with SD or eMMC storage devices. This patchset also added a new sdhci driver for Spreadtrum's controller which supports v4.0 mode. This patchset has been tested on Spreadtrum's mobile phone, emmc can be initialized, mounted, read and written, with these changes for common sdhci framework and sdhci-sprd driver. Changes from V7: - Added Adrian's acked-by on patch 1-6; - Addressed comments. Previous patch series: v7: https://lkml.org/lkml/2018/8/29/130 v6: http://lkml.org/lkml/2018/8/24/205 v5: https://lkml.org/lkml/2018/8/16/122 v4: https://lkml.org/lkml/2018/7/23/269 v3: https://lkml.org/lkml/2018/7/8/239 v2: https://lkml.org/lkml/2018/6/14/936 v1: https://lkml.org/lkml/2018/6/8/108 Chunyan Zhang (9): mmc: sdhci: Add version V4 definition mmc: sdhci: Add sd host v4 mode mmc: sdhci: Change SDMA address register for v4 mode mmc: sdhci: Add ADMA2 64-bit addressing support for V4 mode mmc: sdhci: Add 32-bit block count support for v4 mode mmc: sdhci: Add Auto CMD Auto Select support mmc: sdhci: SDMA may use Auto-CMD23 in v4 mode mmc: sdhci-sprd: Add Spreadtrum's initial host controller dt-bindings: sdhci-sprd: Add bindings for the sdhci-sprd controller .../devicetree/bindings/mmc/sdhci-sprd.txt | 41 ++ drivers/mmc/host/Kconfig | 13 + drivers/mmc/host/Makefile | 1 + drivers/mmc/host/sdhci-sprd.c | 498 +++++++++++++++++++++ drivers/mmc/host/sdhci.c | 223 +++++++-- drivers/mmc/host/sdhci.h | 28 +- 6 files changed, 754 insertions(+), 50 deletions(-) create mode 100644 Documentation/devicetree/bindings/mmc/sdhci-sprd.txt create mode 100644 drivers/mmc/host/sdhci-sprd.c -- 2.7.4