Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp232488imm; Thu, 14 Jun 2018 19:05:24 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLMxHGoeCGEYJNHugDMCx8UCWnhs07Qidkg8o11R3eRglJKqfqCT2Bc3Oe5L3WUrCbzxB2y X-Received: by 2002:a63:a84f:: with SMTP id i15-v6mr4532682pgp.422.1529028323951; Thu, 14 Jun 2018 19:05:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529028323; cv=none; d=google.com; s=arc-20160816; b=NyTEMHCZ+ZaMoTccUiYmYyWhI4e01Pv3GyS8tyUk+Wz5UIbMbQw78m6ZyyQMoFfpJG yvs+f4Egz1ApgJMbdr0RE8RnZApPz4qi9k23UdwCItt9E7wYpetPB3TbM2dg6KaTC2MX bUz/mxQguLTESby8rI12J/WjZprgOC1JOOcJbkDUSs/Lmeviy2nFuQxOAnBzlfdX8fFy YWTC5L5hvTv3krPMHlaAmy27XUo9yuynnOyelpUFIHE76fwwlGVXxqWoxPFLxhcQdYWl nfdVhPISbycH8avE2vqY4Git2VLv3gnv7NddzTojSctCJyyh9c17NM3ufslk2/rWYekw 4y6g== 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=mPKWL9UMIBCOFFeaeSmeMWAFA+4kcTMiI6+Bye4gr10=; b=aKmhKk67PnkMVcKZF1vglz6LVS0CrtRIvvGUx8tfTl0XogySuzsyFWe0/vxCQCm9EQ q3SPu/0HjX5s/mpSlja+9qpuel9I420YJZc6eIqvBcXcTdV8GYu2ot6urqgmQJ4VWOeb koBGVg6K7GlDvq9zP0rTOVO+MFWQ2NMz1OCBURm8aj6GGq5mC1Uc0fHR1GqEIOUxmpBp 9HLU9qKHJ6q3URQd6SGApmNDXiQj0tRFOG/0mnVRVG0sHxAMqeD9B067FXh9deBunVCF oga8iTD8sSd5GeqDFGisAQH2f5bkZ424G9FJKEAPPqRkDvqzmdIPnW2MfGjPCUM0Qaqs o5GA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fdYqL0R6; 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 x11-v6si5486967pgp.4.2018.06.14.19.05.09; Thu, 14 Jun 2018 19:05:23 -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=fdYqL0R6; 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 S965346AbeFOCEk (ORCPT + 99 others); Thu, 14 Jun 2018 22:04:40 -0400 Received: from mail-pf0-f193.google.com ([209.85.192.193]:36579 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965072AbeFOCEi (ORCPT ); Thu, 14 Jun 2018 22:04:38 -0400 Received: by mail-pf0-f193.google.com with SMTP id a12-v6so4132240pfi.3 for ; Thu, 14 Jun 2018 19:04:38 -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=mPKWL9UMIBCOFFeaeSmeMWAFA+4kcTMiI6+Bye4gr10=; b=fdYqL0R6v/5tZf4iZSGp/CEIsLQefMFgve+9MdGdhlCTmBIrkVEUiFF3yPkHA+KRn2 n7FaA74OHcIDrhR9VyZ0rM+iaZVJZDdeT7h/FqjBPq4wnzE+0gEU1XZQLEf9eUu7J4ya AA2zm/qJPYBwopMmHMSbxFAhUTggZ03Q5zkAI= 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=mPKWL9UMIBCOFFeaeSmeMWAFA+4kcTMiI6+Bye4gr10=; b=mYrmyRkKO7brCodsHYNBve/T9lH9Hnoyv+9sEKbRiqRBz9P36exg0pinWZc1elPzWk pQ6QxLdeyqgshACTH0ToH2iTGxzUzsC5eQKQYELZ9IWi9xov1KTi0R9nj5Do5eeTvfFe fwfzunHDoIZYqfaE8gg/iWmKtkeqRa1jsrQK5xRyEUvphd97FUEzj2TzXoaBkYVHFyGe TQyk00o9b3Ox0wKBjt8MRNEHxhjvpBCKMmONmZ55weQMnvudtUdZsiIITmTpCNm36hCa ra7KDMu0LW9RYMS1usvbNyAKMJIaSIa4gi7ysh+1NFhUyn7yKD/71VostRBCht3KvKZp GIhg== X-Gm-Message-State: APt69E11nwHZrgXsEq6+Qlk0cFx51yMD/kFxHA47hkqMAWwrl1pyBrhl T8oheJdFznP0W6SCXPZHB4t8i6bFmDI= X-Received: by 2002:a62:ab0e:: with SMTP id p14-v6mr11893558pff.211.1529028278425; Thu, 14 Jun 2018 19:04:38 -0700 (PDT) Received: from ubt.spreadtrum.com ([117.18.48.102]) by smtp.gmail.com with ESMTPSA id k69-v6sm9504953pgc.39.2018.06.14.19.04.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 14 Jun 2018 19:04:37 -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 , zhang.lyra@gmail.com Subject: [PATCH V2 0/7] mmc: add support for sdhci 4.0 Date: Fri, 15 Jun 2018 10:04:08 +0800 Message-Id: <1529028255-6022-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: Chunyan Zhang 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 v1: * Addressed comments from Ulf: - Add dt-bindings for Spreadtrum sdhci; - Use assigned-clocks* DT bindings to set default source of sdio clock; - Removed unuseful print; - Removed two functions which are not used; - Add back the missing pm_runtime_put_autosuspend() after adding sdhci host. * Changed Spreadtrum sdhci driver name to sdhci-sprd. Chunyan Zhang (7): mmc: sdhci: add sd host v4 mode mmc: sdhci: made changes for System Address register of SDMA 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 CMD23 support for v4 mode mmc: sdhci-sprd: added 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 | 426 +++++++++++++++++++++ drivers/mmc/host/sdhci.c | 85 +++- drivers/mmc/host/sdhci.h | 31 +- 6 files changed, 575 insertions(+), 22 deletions(-) create mode 100644 Documentation/devicetree/bindings/mmc/sdhci-sprd.txt create mode 100644 drivers/mmc/host/sdhci-sprd.c -- 2.7.4