Message ID | 20221019110647.11076-10-victor.shih@genesyslogic.com.tw |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp273414wrs; Wed, 19 Oct 2022 04:42:09 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6hatvyT4J8ZHaSroxGs8P6aIQMv+MQwHgeVCZoAKvl8q9Z6/F1PHuWlhCWGVbtl61b6/iU X-Received: by 2002:a17:90b:1b42:b0:20d:6ddd:9ed2 with SMTP id nv2-20020a17090b1b4200b0020d6ddd9ed2mr45898058pjb.232.1666179729151; Wed, 19 Oct 2022 04:42:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666179729; cv=none; d=google.com; s=arc-20160816; b=LlE4gktPhpHj+7qibS5D+avN4dwxtqWPYT9Ni8mzD4bxZzn2LQMsd74+lLrjaCgjhP iEjhMvfpEVbKZdIXqCHt+6SGlGfmFT1eyo2Cxg2ZK7GWYOCiI3PN3+fZVI08OAvNKdA2 q43P3CbhDqUM9kB8jaicg5G4vIXvY/ZDQiyS6xwg9M+WSYrrlX1nGdLcmr61Jl/nEwJ4 Hezz5YXeJokhbD8tl6toGi+InzeaH+YmG6X3JOaUmESGE8sjimgtYuSgfd9sasczFsdA 3IreGU/oCqy+++D9dsP6qTlSrtzKCVy+zQhmuBVuEOlkcxbcD4PGxxG4qEfkHvmiKD2P YO1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=VbX3cykqxMRH6bMF8u/S2MS3pREEeejjqIbnD23P3/8=; b=E+ex674aQIWYU+TZgAspODEZX4UPA505k8gXuf0jVI8OZ2PXNG+sgaqkeap7sB/i3q V4aNn+a9HjGlIGb4xuBJywLh9vG78eL9FQ6Gh87tuC2byPM/2kJhglqkevfi3TgHE3dR SfWVmIPoNBBm33rVCOTTxfXhd2+GtxQ6aWzc/S/WnvlcGv1dc9yvJvjYziU+oIVuXgrI iZp5B3ymlkCRJd47HdpBc2+jdPnlMGqWnwJ7MJw0Sw8+a21/3nFVja+kwoxIv4ym2z2u 4oQ3O7YnonsB2ftV3g8xftEzkHwX4cfnL6WJFTtM6oYuw8b5hwjQXHRy2SEkwApUlavz 6tCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=PywHpHOS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v184-20020a6389c1000000b00439fb921f8fsi15038309pgd.460.2022.10.19.04.41.56; Wed, 19 Oct 2022 04:42:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=PywHpHOS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S230159AbiJSLeC (ORCPT <rfc822;samuel.l.nystrom@gmail.com> + 99 others); Wed, 19 Oct 2022 07:34:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48588 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232155AbiJSLdT (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 19 Oct 2022 07:33:19 -0400 Received: from mail-oa1-x36.google.com (mail-oa1-x36.google.com [IPv6:2001:4860:4864:20::36]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 49450114DCA; Wed, 19 Oct 2022 04:10:05 -0700 (PDT) Received: by mail-oa1-x36.google.com with SMTP id 586e51a60fabf-1324e7a1284so20165631fac.10; Wed, 19 Oct 2022 04:10:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=VbX3cykqxMRH6bMF8u/S2MS3pREEeejjqIbnD23P3/8=; b=PywHpHOSLQDSyjCsGLvv2pas0TL8Nw1ErqXLBNxR2q8hyQWXROxFHzhbnJbmwimerK reX8lEsofS8pJeUIcVH9mw7vKFJsdzM3vQzQO4dOC28rClcjLu/y2dfRRGvWDou0vncE DNiBMA+AWNcQA/INZQkvxXhgSuE7vhJPQrdTZwPRwv6K1hjMvyarpDz7UnX1imDGFSAa xf+AIkbnt+h9xDlboZp6PdZnIS5Y3wTuIQGsSv1MyU7VriI4rTj0qtfVWuk68wc57zW9 i7ypVk+lrbI9ZXbmA0rVdJ3ossrN/fOsC9BXPxnSm56bmqkHmXETZ5VSgVmI6Ephz4gA wrbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=VbX3cykqxMRH6bMF8u/S2MS3pREEeejjqIbnD23P3/8=; b=Z2Q7qE8ZNxOQuRIbuby7iRdYeafNYjMK0WovFPgFXZEcQYFsab6XaNzRaWhy3o1JmF v+sOzTUP30KYz5UCt9L0jKhPT+Odtu6x9s5GiKsJBJJVeiEsnIUsYmTHjFETucWC53Rk kcafKkACpS5aWfXRWSBIvzGbi1lG+HNwY4ApZE1IpJCRJmRw6TY65z0xoA2bVpbVb2oc k+ZYakBkdM0SWVd9bcarS982tpAh+GYbMk2EQkSB/ogCv1bp2G7tp574aLT47DBuYnsT 42DgaNfnrUjrj6vAwmeCGJugBsolrqW7N6JsW1ptmTpQRGls86L4nzzjqNLTZBUvg4jJ Z1/Q== X-Gm-Message-State: ACrzQf0ea7esGf36W3P5Au7uYj027+GSV0SfLHEOhVD+QkrRokuJ3dYV PzUvItfbNR6dNqQZJKSNiI1J+RV/K3I= X-Received: by 2002:a17:90b:4b49:b0:20d:3e36:3c7d with SMTP id mi9-20020a17090b4b4900b0020d3e363c7dmr45462770pjb.52.1666177644384; Wed, 19 Oct 2022 04:07:24 -0700 (PDT) Received: from localhost.localdomain (2001-b400-e258-8c34-821b-9613-557f-bd8d.emome-ip6.hinet.net. [2001:b400:e258:8c34:821b:9613:557f:bd8d]) by smtp.gmail.com with ESMTPSA id cc11-20020a17090af10b00b0020dc318a43esm8696225pjb.25.2022.10.19.04.07.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Oct 2022 04:07:24 -0700 (PDT) From: Victor Shih <victorshihgli@gmail.com> X-Google-Original-From: Victor Shih <victor.shih@genesyslogic.com.tw> To: ulf.hansson@linaro.org, adrian.hunter@intel.com Cc: linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, benchuanggli@gmail.com, HL.Liu@genesyslogic.com.tw, Greg.tu@genesyslogic.com.tw, takahiro.akashi@linaro.org, dlunev@chromium.org, Victor Shih <victor.shih@genesyslogic.com.tw>, Ben Chuang <ben.chuang@genesyslogic.com.tw> Subject: [PATCH V5 09/26] mmc: sdhci: add UHS-II module Date: Wed, 19 Oct 2022 19:06:30 +0800 Message-Id: <20221019110647.11076-10-victor.shih@genesyslogic.com.tw> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221019110647.11076-1-victor.shih@genesyslogic.com.tw> References: <20221019110647.11076-1-victor.shih@genesyslogic.com.tw> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747116075604468086?= X-GMAIL-MSGID: =?utf-8?q?1747116075604468086?= |
Series |
Add support UHS-II for GL9755
|
|
Commit Message
Victor Shih
Oct. 19, 2022, 11:06 a.m. UTC
From: AKASHI Takahiro <takahiro.akashi@linaro.org> This patch adds sdhci-uhs2.c as a module for UHS-II support. This is a skelton for further development in this patch series. Signed-off-by: Ben Chuang <ben.chuang@genesyslogic.com.tw> Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org> --- drivers/mmc/host/Makefile | 1 + drivers/mmc/host/sdhci-uhs2.c | 46 +++++++++++++++++++++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 drivers/mmc/host/sdhci-uhs2.c
Comments
On 19/10/22 14:06, Victor Shih wrote: > From: AKASHI Takahiro <takahiro.akashi@linaro.org> > > This patch adds sdhci-uhs2.c as a module for UHS-II support. > This is a skelton for further development in this patch series. > > Signed-off-by: Ben Chuang <ben.chuang@genesyslogic.com.tw> > Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org> > --- > drivers/mmc/host/Makefile | 1 + > drivers/mmc/host/sdhci-uhs2.c | 46 +++++++++++++++++++++++++++++++++++ > 2 files changed, 47 insertions(+) > create mode 100644 drivers/mmc/host/sdhci-uhs2.c > > diff --git a/drivers/mmc/host/Makefile b/drivers/mmc/host/Makefile > index 4e4ceb32c4b4..c4ae7c6d9c04 100644 > --- a/drivers/mmc/host/Makefile > +++ b/drivers/mmc/host/Makefile > @@ -11,6 +11,7 @@ obj-$(CONFIG_MMC_PXA) += pxamci.o > obj-$(CONFIG_MMC_MXC) += mxcmmc.o > obj-$(CONFIG_MMC_MXS) += mxs-mmc.o > obj-$(CONFIG_MMC_SDHCI) += sdhci.o > +obj-$(CONFIG_MMC_SDHCI_UHS2) += sdhci-uhs2.o > obj-$(CONFIG_MMC_SDHCI_PCI) += sdhci-pci.o > sdhci-pci-y += sdhci-pci-core.o sdhci-pci-o2micro.o sdhci-pci-arasan.o \ > sdhci-pci-dwc-mshc.o sdhci-pci-gli.o > diff --git a/drivers/mmc/host/sdhci-uhs2.c b/drivers/mmc/host/sdhci-uhs2.c > new file mode 100644 > index 000000000000..f29d3a4ed43c > --- /dev/null > +++ b/drivers/mmc/host/sdhci-uhs2.c > @@ -0,0 +1,46 @@ > +// SPDX-License-Identifier: GPL-2.0-or-later > +/* > + * linux/drivers/mmc/host/sdhci_uhs2.c - Secure Digital Host Controller > + * Interface driver > + * > + * Copyright (C) 2014 Intel Corp, All Rights Reserved. > + * Copyright (C) 2020 Genesys Logic, Inc. > + * Authors: Ben Chuang <ben.chuang@genesyslogic.com.tw> > + * Copyright (C) 2020 Linaro Limited > + * Author: AKASHI Takahiro <takahiro.akashi@linaro.org> > + */ > + > +#include <linux/module.h> > + > +#include "sdhci.h" > +#include "sdhci-uhs2.h" > + > +#define DRIVER_NAME "sdhci_uhs2" > +#define DBG(f, x...) \ > + pr_debug(DRIVER_NAME " [%s()]: " f, __func__, ## x) > + > +/*****************************************************************************\ > + * * > + * Driver init/exit * > + * * > +\*****************************************************************************/ > + > +static int sdhci_uhs2_host_ops_init(struct sdhci_host *host) > +{ > + return 0; > +} > + > +static int __init sdhci_uhs2_mod_init(void) > +{ > + return 0; > +} > +module_init(sdhci_uhs2_mod_init); > + > +static void __exit sdhci_uhs2_exit(void) It would be better to match the form of the init name e.g. sdhci_uhs2_mod_exit > +{ > +} > +module_exit(sdhci_uhs2_exit); > + > +MODULE_AUTHOR("Intel, Genesys Logic, Linaro"); > +MODULE_DESCRIPTION("MMC UHS-II Support"); > +MODULE_LICENSE("GPL v2");
Hi, Adrian On Wed, Nov 2, 2022 at 1:12 AM Adrian Hunter <adrian.hunter@intel.com> wrote: > > On 19/10/22 14:06, Victor Shih wrote: > > From: AKASHI Takahiro <takahiro.akashi@linaro.org> > > > > This patch adds sdhci-uhs2.c as a module for UHS-II support. > > This is a skelton for further development in this patch series. > > > > Signed-off-by: Ben Chuang <ben.chuang@genesyslogic.com.tw> > > Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org> > > --- > > drivers/mmc/host/Makefile | 1 + > > drivers/mmc/host/sdhci-uhs2.c | 46 +++++++++++++++++++++++++++++++++++ > > 2 files changed, 47 insertions(+) > > create mode 100644 drivers/mmc/host/sdhci-uhs2.c > > > > diff --git a/drivers/mmc/host/Makefile b/drivers/mmc/host/Makefile > > index 4e4ceb32c4b4..c4ae7c6d9c04 100644 > > --- a/drivers/mmc/host/Makefile > > +++ b/drivers/mmc/host/Makefile > > @@ -11,6 +11,7 @@ obj-$(CONFIG_MMC_PXA) += pxamci.o > > obj-$(CONFIG_MMC_MXC) += mxcmmc.o > > obj-$(CONFIG_MMC_MXS) += mxs-mmc.o > > obj-$(CONFIG_MMC_SDHCI) += sdhci.o > > +obj-$(CONFIG_MMC_SDHCI_UHS2) += sdhci-uhs2.o > > obj-$(CONFIG_MMC_SDHCI_PCI) += sdhci-pci.o > > sdhci-pci-y += sdhci-pci-core.o sdhci-pci-o2micro.o sdhci-pci-arasan.o \ > > sdhci-pci-dwc-mshc.o sdhci-pci-gli.o > > diff --git a/drivers/mmc/host/sdhci-uhs2.c b/drivers/mmc/host/sdhci-uhs2.c > > new file mode 100644 > > index 000000000000..f29d3a4ed43c > > --- /dev/null > > +++ b/drivers/mmc/host/sdhci-uhs2.c > > @@ -0,0 +1,46 @@ > > +// SPDX-License-Identifier: GPL-2.0-or-later > > +/* > > + * linux/drivers/mmc/host/sdhci_uhs2.c - Secure Digital Host Controller > > + * Interface driver > > + * > > + * Copyright (C) 2014 Intel Corp, All Rights Reserved. > > + * Copyright (C) 2020 Genesys Logic, Inc. > > + * Authors: Ben Chuang <ben.chuang@genesyslogic.com.tw> > > + * Copyright (C) 2020 Linaro Limited > > + * Author: AKASHI Takahiro <takahiro.akashi@linaro.org> > > + */ > > + > > +#include <linux/module.h> > > + > > +#include "sdhci.h" > > +#include "sdhci-uhs2.h" > > + > > +#define DRIVER_NAME "sdhci_uhs2" > > +#define DBG(f, x...) \ > > + pr_debug(DRIVER_NAME " [%s()]: " f, __func__, ## x) > > + > > +/*****************************************************************************\ > > + * * > > + * Driver init/exit * > > + * * > > +\*****************************************************************************/ > > + > > +static int sdhci_uhs2_host_ops_init(struct sdhci_host *host) > > +{ > > + return 0; > > +} > > + > > +static int __init sdhci_uhs2_mod_init(void) > > +{ > > + return 0; > > +} > > +module_init(sdhci_uhs2_mod_init); > > + > > +static void __exit sdhci_uhs2_exit(void) > > It would be better to match the form of the init name > e.g. sdhci_uhs2_mod_exit > I will update it in the patch#8 of the new [PATCH V6]. > > +{ > > +} > > +module_exit(sdhci_uhs2_exit); > > + > > +MODULE_AUTHOR("Intel, Genesys Logic, Linaro"); > > +MODULE_DESCRIPTION("MMC UHS-II Support"); > > +MODULE_LICENSE("GPL v2"); > Thanks, Victor Shih
diff --git a/drivers/mmc/host/Makefile b/drivers/mmc/host/Makefile index 4e4ceb32c4b4..c4ae7c6d9c04 100644 --- a/drivers/mmc/host/Makefile +++ b/drivers/mmc/host/Makefile @@ -11,6 +11,7 @@ obj-$(CONFIG_MMC_PXA) += pxamci.o obj-$(CONFIG_MMC_MXC) += mxcmmc.o obj-$(CONFIG_MMC_MXS) += mxs-mmc.o obj-$(CONFIG_MMC_SDHCI) += sdhci.o +obj-$(CONFIG_MMC_SDHCI_UHS2) += sdhci-uhs2.o obj-$(CONFIG_MMC_SDHCI_PCI) += sdhci-pci.o sdhci-pci-y += sdhci-pci-core.o sdhci-pci-o2micro.o sdhci-pci-arasan.o \ sdhci-pci-dwc-mshc.o sdhci-pci-gli.o diff --git a/drivers/mmc/host/sdhci-uhs2.c b/drivers/mmc/host/sdhci-uhs2.c new file mode 100644 index 000000000000..f29d3a4ed43c --- /dev/null +++ b/drivers/mmc/host/sdhci-uhs2.c @@ -0,0 +1,46 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* + * linux/drivers/mmc/host/sdhci_uhs2.c - Secure Digital Host Controller + * Interface driver + * + * Copyright (C) 2014 Intel Corp, All Rights Reserved. + * Copyright (C) 2020 Genesys Logic, Inc. + * Authors: Ben Chuang <ben.chuang@genesyslogic.com.tw> + * Copyright (C) 2020 Linaro Limited + * Author: AKASHI Takahiro <takahiro.akashi@linaro.org> + */ + +#include <linux/module.h> + +#include "sdhci.h" +#include "sdhci-uhs2.h" + +#define DRIVER_NAME "sdhci_uhs2" +#define DBG(f, x...) \ + pr_debug(DRIVER_NAME " [%s()]: " f, __func__, ## x) + +/*****************************************************************************\ + * * + * Driver init/exit * + * * +\*****************************************************************************/ + +static int sdhci_uhs2_host_ops_init(struct sdhci_host *host) +{ + return 0; +} + +static int __init sdhci_uhs2_mod_init(void) +{ + return 0; +} +module_init(sdhci_uhs2_mod_init); + +static void __exit sdhci_uhs2_exit(void) +{ +} +module_exit(sdhci_uhs2_exit); + +MODULE_AUTHOR("Intel, Genesys Logic, Linaro"); +MODULE_DESCRIPTION("MMC UHS-II Support"); +MODULE_LICENSE("GPL v2");