Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp3512878ybh; Tue, 17 Mar 2020 01:19:59 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuQSQ0Z1BPH23BUNwghdhSJZXjarzZjkfxnuCvJyb0jWUYTOpOddDTc3BD/PZNbiro4ia2j X-Received: by 2002:a9d:3b8b:: with SMTP id k11mr2518508otc.245.1584433199819; Tue, 17 Mar 2020 01:19:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584433199; cv=none; d=google.com; s=arc-20160816; b=oD8aWOmxhC+IfiCtxUy7K2jnArx0NLY9/U1lPJdKSa4cUOd5YOsdshHIFqiKR/dPfn gqGT4YNv//MgLzO8EzEjMYRpuPN7btB3Pvf8ncGuQZdIrRk/fi+Gzr6/dtQkWVeEaPbE JN+BW5DAXeiYVqrGQC0sgZhm39386WvwBN/evTM6zFRf7se5rUbF1eRri2q7cIT380Ay ggo1/Sr/0RZBNRy4yoiweL7kBSosG5d4l/Uz0gQ9gNFhoKCW+mwK9L/x46q6roh+Qm+V OCNsZ7uBlaKZRJO9fDEdRSA3BgRpWlGAo62TkO7qwGQJstM2XOn58mq0oUYRtHO0G4e1 Pwag== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject:ironport-sdr :ironport-sdr; bh=Z3ohEeUFaRHgHclXC3thboTYq/GNAe+uGZH0nZ+0Re4=; b=JsFsQkwcwi2WyZ07WtL597NeWgon2YCy79rUmDatuHAJL+A9JLBJloe8MJ6WBDJlaw NlQ5sOLZRctwH0b9vMHG+Cmx2sZeC2YdoLOOY8G0tI/WG7yNisuITndqVvkRmc6fZZyK t7Of3bodm3Uw8A0UOaeaLNqShDdfmEsKWMJOgm3T7drldUOReMoRTNrn6z8+V2Pu03HI oXth9h0EiktH/ikKhYYqdk2VX96BZ1X3X87O8dWZrplLrOmOQw4x1ERx1TV4hCDnv5Ex Q52yo7qwVyNkEyzMpBOxYRDTetoZkUhgsnkiNiXmXeKpBvLdrJ6x2o+MMN3epFktvSwg WtGg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 1si1242971otq.290.2020.03.17.01.19.47; Tue, 17 Mar 2020 01:19:59 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726386AbgCQISG (ORCPT + 99 others); Tue, 17 Mar 2020 04:18:06 -0400 Received: from mga11.intel.com ([192.55.52.93]:17694 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725536AbgCQISG (ORCPT ); Tue, 17 Mar 2020 04:18:06 -0400 IronPort-SDR: 7WlmVo2EjHtlr7/gehbOxTqHUTwcd8LEWZlkhPeZHY8xr7xM337aFXtadJgzID3jn+Q0s9HYt5 yzeKLEYiWlIQ== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Mar 2020 01:18:05 -0700 IronPort-SDR: 8EI90Sa/Fl8A8OtrjnDeo/65QBPfPQaXLft94/WT65VrNZbsN3ntTX8TazKrkktJRaag3j25Ex B+G400bZ+sBw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,563,1574150400"; d="scan'208";a="443671941" Received: from ahunter-desktop.fi.intel.com (HELO [10.237.72.87]) ([10.237.72.87]) by fmsmga005.fm.intel.com with ESMTP; 17 Mar 2020 01:18:04 -0700 Subject: Re: [RFC PATCH v2 3/6] mmc: host: Add UHS-II support in host layer To: Ben Chuang , 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 References: <9f861920380df9d7a6d52c905fc47643eb25f33f.1578560282.git.benchuanggli@gmail.com> From: Adrian Hunter Organization: Intel Finland Oy, Registered Address: PL 281, 00181 Helsinki, Business Identity Code: 0357606 - 4, Domiciled in Helsinki Message-ID: Date: Tue, 17 Mar 2020 10:17:05 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: <9f861920380df9d7a6d52c905fc47643eb25f33f.1578560282.git.benchuanggli@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/01/20 11:14 am, Ben Chuang wrote: > From: Ben Chuang > > Add UHS-II support in host layer Split host layer changes from sdhci changes. > > Reported-by: kbuild test robot Drop "Reported-by: kbuild test robot " > Signed-off-by: Ben Chuang > --- > drivers/mmc/host/Makefile | 1 + > drivers/mmc/host/{sdhci.c => sdhci-core.c} | 276 ++++++-- > 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-pxav3.c | 4 +- > drivers/mmc/host/sdhci-uhs2.c | 751 +++++++++++++++++++++ > drivers/mmc/host/sdhci-uhs2.h | 34 + > drivers/mmc/host/sdhci-xenon.c | 4 +- > drivers/mmc/host/sdhci.h | 284 +++++++- > drivers/mmc/host/sdhci_am654.c | 4 +- > include/linux/mmc/uhs2.h | 270 ++++++++ > 14 files changed, 1583 insertions(+), 63 deletions(-) > 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 Please make sdhci-uhs2 a module and do not rename sdhci.c. References in sdhci.c to sdhci-uhs2.c will need to be enclosed by #if IS_REACHABLE(CONFIG_SDHCI_UHS2) Move all UHS-II definitions into sdhci-uhs2.h. Things that are for V4 but not necessarily UHS-II can be in sdhci.h Make the set_power parameter change into a separate patch Fix all spelling mistakes Make comment style correct. Review all checkpatch warnings and checks (i.e. --strict option) If possible provide a link to a tree that contains the patches. Re-base on Ulf's next branch The patch set could use an overview of how UHS-II is different from regular SD. In other patches there are a bunch of memory allocations on the I/O path. That is a problem. Memory needed should be allocated in advance.