Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1826886ybl; Thu, 9 Jan 2020 02:17:17 -0800 (PST) X-Google-Smtp-Source: APXvYqxk5dofoXC20VP9+rnwXiVMhZfMopcRpFLGbdyZTOKvRjem9+ec33TKywa4KPPAfZ0Qlcmd X-Received: by 2002:aca:5e02:: with SMTP id s2mr2452060oib.80.1578565037498; Thu, 09 Jan 2020 02:17:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578565037; cv=none; d=google.com; s=arc-20160816; b=MjDny/7UgTe5EDno7f7RcOYH8/77vZ8nu2YdWvdHUctXy0nbJ/5TouusY2HLXWK8fH tHhXSDu6rTyATbqcowJaFhoPjQKY317sr/HkyzfVkyfKc1WFOttZoBLvMK7YjpGzZ9T2 619s7dxamBHGHzmu0D6PxJulR845xVGtII5uri45+bu3euIjCEulupxZaSAoi8gcARLj tqst4X56daI9wV16ihhBzUaFmdqki/GX0yz6sDlGsYnl8hpBbBbQyPyPfI1JLUcNMXt/ sc0vDtCKctW/4Fh898teJr7NWI9uPFw3K/DZR5p7yjkblu/H+3pinsx3Jv7QB1YRLGvo J/lQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=VPrFCrM6KwJYTjriuFL5VoYsunJfk+aWDMKtdLsKHkg=; b=J5aEFiU/yMWCG6bccv8k0/HiEnf7l6KV7Izw0zwGP6EaSWcoChqwu9CDkHpTjHJ8t5 fwl1aPTtJnuTQnGUmhIsSeP01IDNqFGaiUyAo7cQHRHGDjxBZE1oP+Kb4BLTt1URP+/0 YpGNFdQWC3yy7I6sYoKJ/ABBfmK7hF24ZCprejoyE9gpVdxGa64dQkpdXAVMHq+mtIwE diAWKDjPTGlyBCfM87LOfxk5HDvRkqeLSbSaI6AutysjLrxto/WvVdIn/RJR4ZFYBISX /wLmKG1Rj8tGRPnunKTeP72m6GR7oqne5A6WszSVQ1ZDogLRbbj+QOcwz/4JzlS5Vo/I x6lg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ADzd4sIz; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q28si3208703oij.149.2020.01.09.02.17.05; Thu, 09 Jan 2020 02:17:17 -0800 (PST) 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=@gmail.com header.s=20161025 header.b=ADzd4sIz; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728944AbgAIJN0 (ORCPT + 99 others); Thu, 9 Jan 2020 04:13:26 -0500 Received: from mail-pf1-f196.google.com ([209.85.210.196]:34663 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728793AbgAIJNZ (ORCPT ); Thu, 9 Jan 2020 04:13:25 -0500 Received: by mail-pf1-f196.google.com with SMTP id i6so3087703pfc.1; Thu, 09 Jan 2020 01:13:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=VPrFCrM6KwJYTjriuFL5VoYsunJfk+aWDMKtdLsKHkg=; b=ADzd4sIziesJUzuW0zPL+tj6sFWHWdzNFWYaXMAfaAAmk2fy8URqPsDg3FSPySGryj KuQDPTE+LWWx71s48stbNMXZgVzhQTWRhl47EZ4EgIJ7FHPKpikCcxosgWoYDVza4/bz rTSW7QsxCfKygveR3QmoJjAKi6PKYLz4mgaVXUIb4XHbULfaFX1pYzma3qR0y3Rh1z6y svTDVpRihIjj5KsV9M3DUjubgDT260OocPYvbKV1F6Dra/8gT1kxWnXQ4IbcnxyOu+oa 6be8EzbW/hJGbDMju3YtPe+8FSUi8KHvFfyuSXQ17sMkGz0vmO6ZpstLs+d13X4ATwL4 R3ig== 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:mime-version :content-transfer-encoding; bh=VPrFCrM6KwJYTjriuFL5VoYsunJfk+aWDMKtdLsKHkg=; b=MX9mBduprtAiaWRXFYQ8OMWQ0/TNQZFtfNknwa4XgykNqJMkzHvTKLLrHdvPvkhb0A Urbm/IbJNpvNVdPvzwgWuvAL5HRae+U6QSF/hMud7aSZJUi4QX7sr/krvv88DtYmKug/ SqfinwP0R6pOT4Jo53Tlz/Q94bF/TKvVr64mJmLQD1i0f/i34wQ1LRO9KI2hhyH/GzxK LxSnJbP36LK1otCQ6Hz8482JR09d/opZMM3x5JIc/63sLGaYSSH3S1bRWHk4d/NbqJ2S /m7R87ZkjfuG580yUYroi8keL8yzcx3i4L/omCQLwinANsR0NyFkrtfgWmxIfJorhtM8 6FZQ== X-Gm-Message-State: APjAAAWNep4k80pNmf2sPG7lE1gD+QuQdtmLX4Go6h0N9M8vZMqNerxt BGq9guMiSWBq8Uf79TRcxWU= X-Received: by 2002:aa7:9816:: with SMTP id e22mr10311252pfl.229.1578561204341; Thu, 09 Jan 2020 01:13:24 -0800 (PST) Received: from gli-arch.genesyslogic.com.tw (60-251-58-169.HINET-IP.hinet.net. [60.251.58.169]) by smtp.gmail.com with ESMTPSA id t23sm6951429pfq.106.2020.01.09.01.13.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jan 2020 01:13:23 -0800 (PST) From: Ben Chuang To: adrian.hunter@intel.com, ulf.hansson@linaro.org Cc: linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, greg.tu@genesyslogic.com.tw, ben.chuang@genesyslogic.com.tw, Ben Chuang Subject: [RFC PATCH v2 0/6] Add support UHS-II for GL9755 Date: Thu, 9 Jan 2020 17:13:17 +0800 Message-Id: X-Mailer: git-send-email 2.24.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Uffe and Adrian, These patches support UHS-II and fix GL9755 UHS-II compatibility. The parts of UHS-II are based on [1][2] and porting to Linux 5.5-rc5. I have seen that Uffe comment that splitting the UHS-II parts into smaller patches. Other than splitting into small patches, could you give me some suggestions for refactoring/splitting files? Best regards, Ben References: 1. [RFC,1/2] mmc: core: support UHS-II in core stack. (https://patchwork.kernel.org/patch/5544441/) 2. [RFC,2/2] mmc: sdhci: support UHS-II in SDHCI host. (https://patchwork.kernel.org/patch/5544451/) v2: - base on Linux v5.5-rc5 Ben Chuang (6): mmc: Add UHS-II support in public headers mmc: core: Add UHS-II support in core layer mmc: host: Add UHS-II support in host layer mmc: uhs2: Introduce a uhs2_post_attach_sd function mmc: sdhci-uhs2: Introduce a uhs2_pre_detect_init function mmc: sdhci-pci-gli: Fix power/reset/ZC/timeout for GL9755 UHS-II mode drivers/mmc/core/Makefile | 3 +- drivers/mmc/core/block.c | 7 +- drivers/mmc/core/bus.c | 5 +- drivers/mmc/core/core.c | 65 +- drivers/mmc/core/core.h | 3 +- drivers/mmc/core/regulator.c | 14 + drivers/mmc/core/sd.c | 27 +- drivers/mmc/core/sd_ops.c | 12 + drivers/mmc/core/uhs2.c | 995 +++++++++++++++++++++ drivers/mmc/core/uhs2.h | 23 + drivers/mmc/host/Makefile | 1 + drivers/mmc/host/{sdhci.c => sdhci-core.c} | 285 +++++- drivers/mmc/host/sdhci-milbeaut.c | 4 +- drivers/mmc/host/sdhci-of-arasan.c | 4 +- drivers/mmc/host/sdhci-of-at91.c | 4 +- drivers/mmc/host/sdhci-omap.c | 2 +- drivers/mmc/host/sdhci-pci-core.c | 4 +- drivers/mmc/host/sdhci-pci-gli.c | 361 +++++++- drivers/mmc/host/sdhci-pxav3.c | 4 +- drivers/mmc/host/sdhci-uhs2.c | 754 ++++++++++++++++ drivers/mmc/host/sdhci-uhs2.h | 34 + drivers/mmc/host/sdhci-xenon.c | 4 +- drivers/mmc/host/sdhci.h | 286 +++++- drivers/mmc/host/sdhci_am654.c | 4 +- include/linux/mmc/card.h | 1 + include/linux/mmc/core.h | 6 + include/linux/mmc/host.h | 31 + include/linux/mmc/uhs2.h | 270 ++++++ 28 files changed, 3137 insertions(+), 76 deletions(-) create mode 100644 drivers/mmc/core/uhs2.c create mode 100644 drivers/mmc/core/uhs2.h rename drivers/mmc/host/{sdhci.c => sdhci-core.c} (94%) create mode 100644 drivers/mmc/host/sdhci-uhs2.c create mode 100644 drivers/mmc/host/sdhci-uhs2.h create mode 100644 include/linux/mmc/uhs2.h base-commit: c79f46a282390e0f5b306007bf7b11a46d529538 -- 2.24.1