Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp308086ybh; Tue, 17 Mar 2020 23:54:31 -0700 (PDT) X-Google-Smtp-Source: ADFU+vstUUJTNruYtTfmpF2kHQlbrfqQQ3vuu60cUrGIvm8p2IioIU56mEHeTWqL8OEJDlauX0EM X-Received: by 2002:aca:3008:: with SMTP id w8mr2003036oiw.96.1584514471441; Tue, 17 Mar 2020 23:54:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584514471; cv=none; d=google.com; s=arc-20160816; b=PvbJc4UeZW7awR7mYGp2M6C7C0vpv4KZ3WHP/gLaedDVRhltwy0Q4bYU2B7rho+WTK b/WZxcDyAExzc2yBrETOERji2sNrCnBJKYPYxCQ4DZNzeDLRV/auDhfmQTRb/ClTwD6v 9GFNz+dpaQpOvzzOnlvutpKYkX8ZD9sjZNuq+Wb1Nbm80w9r33ps5E4wmKquYH9uvvo3 3ufxBDxsMcZIIOwrqcVd8tdTF/WmcLHXbrK704N6rPAnbTqfvWU9W58ldBoUxONyZaYg WbjwlNT7tcWm23v4FTbZJXteJZianCjKzXTSeFDiFTV9eFR3D8M2varyG+xHQEYmUgFd dcFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=JIUU945tjKWn7G+uWGg7eqG/veZ5KU9jtb/2ZLYG2SI=; b=ZHAKvzOtD43cQ0JK19EuaV2lwJI6rMlGaM+C5oOWXywr786fXWbDoqXMt61teJnAfu 5ReDaRjk9P98T5eeqKAndRRWuxP77bOzmbckN7CqQ2E+pkO3ptjZTzSzrXcV0XSRtdim zaRhHOD36KZeb8F4/lp/SbgbrD2aAMkd3nt9oobHUqDGcYnMox8rN1Cw2LascSXa1ZC+ aN3iIIqBBXUQo+VlTzLX/gtl/c5ZJlusk0bckiojeaRgpHHuEB3B0PJ9VcZPDwdGJ9Fg Ei92XU/Bq2VZoZxXzTbYU1mqOH0dxibLI/zFkGAD3GRaZdX3mu1pajGj9LWsDT/8444u STgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=orY+w5pW; 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 u10si2892291otj.235.2020.03.17.23.54.19; Tue, 17 Mar 2020 23:54:31 -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=@gmail.com header.s=20161025 header.b=orY+w5pW; 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 S1727169AbgCRGxU (ORCPT + 99 others); Wed, 18 Mar 2020 02:53:20 -0400 Received: from mail-qk1-f195.google.com ([209.85.222.195]:37184 "EHLO mail-qk1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727004AbgCRGxU (ORCPT ); Wed, 18 Mar 2020 02:53:20 -0400 Received: by mail-qk1-f195.google.com with SMTP id z25so32142196qkj.4; Tue, 17 Mar 2020 23:53:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=JIUU945tjKWn7G+uWGg7eqG/veZ5KU9jtb/2ZLYG2SI=; b=orY+w5pWV/Z1rru//L4oMZleR46ybigSk519t/NT8ODjrzqN0iKGY3fsIKy0xLTzl5 IdNL50paLXTeHOk1UkqSXfvvdBCttWbGLY1+X7t8IzKo0HiALm8kp44W1BnqEnyDq542 8v5+DrK1CFN0pw+hyMwxOq+r34zRq9vYC93MaKCg0WbZYMgpPJIIMF+C5ceKrhzmFfk+ JrLVTwwxaiaMGcz6A2a3hK0fS5Ll73JDzeAK6F22skgeKcrrBQj5jAfpfv0xM1vQzKe7 /F7F8W4EY64HQtj8stzqxZjWxrfXm8F1VpP/7cwq6ksWlcsiwGEHMNX8nvBrCwQeIjsF vDcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=JIUU945tjKWn7G+uWGg7eqG/veZ5KU9jtb/2ZLYG2SI=; b=tT8ztU3VKy57TaHTQmNvI594aBtzwAov+nGacP+UvLheO9+iRaYZ2xka92QN/XQOyn WleAOG54Y3ekzzOPS+v8MsH+yl3CeenxkTeaWN4XIiX8CibmgoewRw4C3DPJWfk4sB6i 8qwCU4Kc4wgDz5o3QADyP9j7LiKz7Mw6JyJbvUDU7rnV25Qj51rAjLkCYoYjKE6agDAE mcMc2yXVK+G1VpW7INKySJbW5YEhy/YwK/U4T0Y8wTOBDYx8594uPNnl861TY5KTOIvb phQ/quSmm7CWuLPMx6cgC433wU2wZiyQN3A/heZB/u+ZTLNuuiXwfImGFIQmuAOjlMbf SpOg== X-Gm-Message-State: ANhLgQ0NVtIjtdOC434/aCZq26qjTEcTxEYn97cW1533PViGTQ/zzmis H8nN9rSmsCCM88GUAOD54oQpVlEqi9/1ZXat3Eg= X-Received: by 2002:a25:dc07:: with SMTP id y7mr3949038ybe.48.1584514399393; Tue, 17 Mar 2020 23:53:19 -0700 (PDT) MIME-Version: 1.0 References: <9f861920380df9d7a6d52c905fc47643eb25f33f.1578560282.git.benchuanggli@gmail.com> In-Reply-To: From: Ben Chuang Date: Wed, 18 Mar 2020 14:53:08 +0800 Message-ID: Subject: Re: [RFC PATCH v2 3/6] mmc: host: Add UHS-II support in host layer To: Adrian Hunter Cc: Ulf Hansson , linux-mmc , Linux Kernel Mailing List , greg.tu@genesyslogic.com.tw, Ben Chuang Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 17, 2020 at 4:18 PM Adrian Hunter wrote: > > 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. Thanks for your comments and guidance. There seems to be a lot of work to do. I will do my best to meet these.