Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp3700202pxv; Mon, 26 Jul 2021 09:42:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyofepu+cEOnD3DQDRkxrnMRC30eE77UBcqap+IsBd3k+gLR1HwBcn92pxQedNPIVLgjAWf X-Received: by 2002:a17:906:2547:: with SMTP id j7mr4421238ejb.491.1627317762863; Mon, 26 Jul 2021 09:42:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627317762; cv=none; d=google.com; s=arc-20160816; b=vipaA9MImJhujuWVMS/Czi8Hm1fu5Q0N0mRB3jUSpIM+ZjnOFKVW7nWk9lvhF3uTEy oF++LZ5d89aFf58FwqeIMDZl9EeqB0+1tmiSlKjjjyLZ3pKG2h24GAuM0a+ws8mN5c8h ydtJulEEpW0781n9dBu0p01us4syU29g9pSjRDOWVZrdYwmnBhXlNVROMVVkEIeBYkYf vh4Z2QiKQk+ylgz7DypDrNNsF+fcK1w6T9uWkbV0NRur5kKXvYaPHLveIMO7sSw8xOuv LPsDIu22JDt9lIWwm0KJ/bnzJE6a05eu/wOauJdkt54RpnbXfeFHtdCeKVdBB3veEIpT masg== 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 :user-agent:organization:references:in-reply-to:date:cc:to:reply-to :from:subject:message-id; bh=x6u3dcrYOM2Evc91DUTKg5jqTL4JREHqFZvYKpvJZ1E=; b=HTwvXX29LAKU4L8zewQwX9Zk/wWVj7bSRDOn/Us3EuVcDpIx8AXjFGh/q7pf8m086j P1XUGKI18lurITCRC4Ae8VaTzWu0Z/lVq9LDBnQuO3CEeFgfz9VAqIjgAS3+dXQ5CsWL 68W92hyRANyTQJDap2A1DDgOpJK7seXue5hk1vD3ezZv5fnGjLo4qC9AHGGsdZCVZXTV 5aVfWrPcJkVk9dykoDDOVM0NEuRL19RWoMrVjQPx4arG6DR2Up5cjPm/GXeGrzuzKbXF 0s6G3gcYaYgrvcvSOm7lwW/97ad4mAfHuxr31jPuxkaO8BvFI17u2BjInZjouiStgDh+ cORg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id o1si290461ejg.107.2021.07.26.09.42.18; Mon, 26 Jul 2021 09:42:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S239692AbhGZP6I (ORCPT + 99 others); Mon, 26 Jul 2021 11:58:08 -0400 Received: from mga04.intel.com ([192.55.52.120]:22656 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238843AbhGZPob (ORCPT ); Mon, 26 Jul 2021 11:44:31 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10057"; a="210380895" X-IronPort-AV: E=Sophos;i="5.84,270,1620716400"; d="scan'208";a="210380895" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Jul 2021 09:24:59 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.84,270,1620716400"; d="scan'208";a="505088815" Received: from linux.intel.com ([10.54.29.200]) by FMSMGA003.fm.intel.com with ESMTP; 26 Jul 2021 09:24:59 -0700 Received: from debox1-desk1.jf.intel.com (debox1-desk1.jf.intel.com [10.54.75.160]) by linux.intel.com (Postfix) with ESMTP id 6D64F580808; Mon, 26 Jul 2021 09:24:59 -0700 (PDT) Message-ID: <1ea838bf7cc1fd50622ef1bac83b07c9d4aa15fd.camel@linux.intel.com> Subject: Re: [PATCH] platform/x86/intel: Move Intel PMT drivers to new subfolder From: "David E. Box" Reply-To: david.e.box@linux.intel.com To: Andy Shevchenko Cc: hdegoede@redhat.com, mgross@linux.intel.com, linux-kernel@vger.kernel.org, platform-driver-x86@vger.kernel.org Date: Mon, 26 Jul 2021 09:24:59 -0700 In-Reply-To: References: <20210724025132.2726164-1-david.e.box@linux.intel.com> Organization: David E. Box Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.38.4 (3.38.4-1.fc33) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2021-07-26 at 12:38 +0300, Andy Shevchenko wrote: > On Fri, Jul 23, 2021 at 07:51:32PM -0700, David E. Box wrote: > > Move all Intel Platform Monitoring Technology drivers to > > drivers/platform/x86/intel/pmt. > > Not sure we need the pmt part in the file names (dup with a folder > name). If > you have module parameters just keep the module / driver name to be > the same. No parameters. I'll send out a V2 with the prefix removed. Thanks. David > > Either way up to Hans, I'm fine with this > Reviewed-by: Andy Shevchenko > > > Signed-off-by: David E. Box > > --- > >  MAINTAINERS                                   |  2 +- > >  drivers/platform/x86/Kconfig                  | 36 --------------- > > -- > >  drivers/platform/x86/Makefile                 |  3 -- > >  drivers/platform/x86/intel/Kconfig            |  1 + > >  drivers/platform/x86/intel/Makefile           |  1 + > >  drivers/platform/x86/intel/pmt/Kconfig        | 40 > > +++++++++++++++++++ > >  drivers/platform/x86/intel/pmt/Makefile       |  9 +++++ > >  .../pmt/pmt_class.c}                          |  2 +- > >  .../pmt/pmt_class.h}                          |  0 > >  .../pmt/pmt_crashlog.c}                       |  2 +- > >  .../pmt/pmt_telemetry.c}                      |  2 +- > >  11 files changed, 55 insertions(+), 43 deletions(-) > >  create mode 100644 drivers/platform/x86/intel/pmt/Kconfig > >  create mode 100644 drivers/platform/x86/intel/pmt/Makefile > >  rename drivers/platform/x86/{intel_pmt_class.c => > > intel/pmt/pmt_class.c} (99%) > >  rename drivers/platform/x86/{intel_pmt_class.h => > > intel/pmt/pmt_class.h} (100%) > >  rename drivers/platform/x86/{intel_pmt_crashlog.c => > > intel/pmt/pmt_crashlog.c} (99%) > >  rename drivers/platform/x86/{intel_pmt_telemetry.c => > > intel/pmt/pmt_telemetry.c} (99%) > > > > diff --git a/MAINTAINERS b/MAINTAINERS > > index ffed30dc86b0..ffd741306dcf 100644 > > --- a/MAINTAINERS > > +++ b/MAINTAINERS > > @@ -9494,7 +9494,7 @@ INTEL PMT DRIVER > >  M:     "David E. Box" > >  S:     Maintained > >  F:     drivers/mfd/intel_pmt.c > > -F:     drivers/platform/x86/intel_pmt_* > > +F:     drivers/platform/x86/intel/pmt/pmt_* > >   > >  INTEL PRO/WIRELESS 2100, 2200BG, 2915ABG NETWORK CONNECTION > > SUPPORT > >  M:     Stanislav Yakovlev > > diff --git a/drivers/platform/x86/Kconfig > > b/drivers/platform/x86/Kconfig > > index cae72922f448..f06ccd00f6c4 100644 > > --- a/drivers/platform/x86/Kconfig > > +++ b/drivers/platform/x86/Kconfig > > @@ -1184,42 +1184,6 @@ config INTEL_MRFLD_PWRBTN > >           To compile this driver as a module, choose M here: the > > module > >           will be called intel_mrfld_pwrbtn. > >   > > -config INTEL_PMT_CLASS > > -       tristate > > -       help > > -         The Intel Platform Monitoring Technology (PMT) class > > driver provides > > -         the basic sysfs interface and file hierarchy used by PMT > > devices. > > - > > -         For more information, see: > > -         > > - > > -         To compile this driver as a module, choose M here: the > > module > > -         will be called intel_pmt_class. > > - > > -config INTEL_PMT_TELEMETRY > > -       tristate "Intel Platform Monitoring Technology (PMT) > > Telemetry driver" > > -       depends on MFD_INTEL_PMT > > -       select INTEL_PMT_CLASS > > -       help > > -         The Intel Platform Monitory Technology (PMT) Telemetry > > driver provides > > -         access to hardware telemetry metrics on devices that > > support the > > -         feature. > > - > > -         To compile this driver as a module, choose M here: the > > module > > -         will be called intel_pmt_telemetry. > > - > > -config INTEL_PMT_CRASHLOG > > -       tristate "Intel Platform Monitoring Technology (PMT) > > Crashlog driver" > > -       depends on MFD_INTEL_PMT > > -       select INTEL_PMT_CLASS > > -       help > > -         The Intel Platform Monitoring Technology (PMT) crashlog > > driver provides > > -         access to hardware crashlog capabilities on devices that > > support the > > -         feature. > > - > > -         To compile this driver as a module, choose M here: the > > module > > -         will be called intel_pmt_crashlog. > > - > >  config INTEL_PUNIT_IPC > >         tristate "Intel P-Unit IPC Driver" > >         help > > diff --git a/drivers/platform/x86/Makefile > > b/drivers/platform/x86/Makefile > > index 43d36f8c36f1..d517d5cbc9ca 100644 > > --- a/drivers/platform/x86/Makefile > > +++ b/drivers/platform/x86/Makefile > > @@ -128,9 +128,6 @@ obj- > > $(CONFIG_INTEL_UNCORE_FREQ_CONTROL)             += intel-uncore- > > frequency.o > >  obj-$(CONFIG_INTEL_BXTWC_PMIC_TMU)     += intel_bxtwc_tmu.o > >  obj-$(CONFIG_INTEL_CHTDC_TI_PWRBTN)    += intel_chtdc_ti_pwrbtn.o > >  obj-$(CONFIG_INTEL_MRFLD_PWRBTN)       += intel_mrfld_pwrbtn.o > > -obj-$(CONFIG_INTEL_PMT_CLASS)          += intel_pmt_class.o > > -obj-$(CONFIG_INTEL_PMT_TELEMETRY)      += intel_pmt_telemetry.o > > -obj-$(CONFIG_INTEL_PMT_CRASHLOG)       += intel_pmt_crashlog.o > >  obj-$(CONFIG_INTEL_PUNIT_IPC)          += intel_punit_ipc.o > >  obj-$(CONFIG_INTEL_SCU_IPC)            += intel_scu_ipc.o > >  obj-$(CONFIG_INTEL_SCU_PCI)            += intel_scu_pcidrv.o > > diff --git a/drivers/platform/x86/intel/Kconfig > > b/drivers/platform/x86/intel/Kconfig > > index 8ca021785f67..0b238026c082 100644 > > --- a/drivers/platform/x86/intel/Kconfig > > +++ b/drivers/platform/x86/intel/Kconfig > > @@ -19,5 +19,6 @@ if X86_PLATFORM_DRIVERS_INTEL > >  source "drivers/platform/x86/intel/int33fe/Kconfig" > >  source "drivers/platform/x86/intel/int3472/Kconfig" > >  source "drivers/platform/x86/intel/pmc/Kconfig" > > +source "drivers/platform/x86/intel/pmt/Kconfig" > >   > >  endif # X86_PLATFORM_DRIVERS_INTEL > > diff --git a/drivers/platform/x86/intel/Makefile > > b/drivers/platform/x86/intel/Makefile > > index 49962f4dfdec..93026884ae03 100644 > > --- a/drivers/platform/x86/intel/Makefile > > +++ b/drivers/platform/x86/intel/Makefile > > @@ -7,3 +7,4 @@ > >  obj-$(CONFIG_INTEL_CHT_INT33FE)                += int33fe/ > >  obj-$(CONFIG_INTEL_SKL_INT3472)                += int3472/ > >  obj-$(CONFIG_INTEL_PMC_CORE)           += pmc/ > > +obj-y                                  += pmt/ > > diff --git a/drivers/platform/x86/intel/pmt/Kconfig > > b/drivers/platform/x86/intel/pmt/Kconfig > > new file mode 100644 > > index 000000000000..d630f883a717 > > --- /dev/null > > +++ b/drivers/platform/x86/intel/pmt/Kconfig > > @@ -0,0 +1,40 @@ > > +# SPDX-License-Identifier: GPL-2.0-only > > +# > > +# Intel Platform Monitoring Technology drivers > > +# > > + > > +config INTEL_PMT_CLASS > > +       tristate > > +       help > > +         The Intel Platform Monitoring Technology (PMT) class > > driver provides > > +         the basic sysfs interface and file hierarchy used by PMT > > devices. > > + > > +         For more information, see: > > +         > > + > > +         To compile this driver as a module, choose M here: the > > module > > +         will be called intel_pmt_class. > > + > > +config INTEL_PMT_TELEMETRY > > +       tristate "Intel Platform Monitoring Technology (PMT) > > Telemetry driver" > > +       depends on MFD_INTEL_PMT > > +       select INTEL_PMT_CLASS > > +       help > > +         The Intel Platform Monitory Technology (PMT) Telemetry > > driver provides > > +         access to hardware telemetry metrics on devices that > > support the > > +         feature. > > + > > +         To compile this driver as a module, choose M here: the > > module > > +         will be called intel_pmt_telemetry. > > + > > +config INTEL_PMT_CRASHLOG > > +       tristate "Intel Platform Monitoring Technology (PMT) > > Crashlog driver" > > +       depends on MFD_INTEL_PMT > > +       select INTEL_PMT_CLASS > > +       help > > +         The Intel Platform Monitoring Technology (PMT) crashlog > > driver provides > > +         access to hardware crashlog capabilities on devices that > > support the > > +         feature. > > + > > +         To compile this driver as a module, choose M here: the > > module > > +         will be called intel_pmt_crashlog. > > diff --git a/drivers/platform/x86/intel/pmt/Makefile > > b/drivers/platform/x86/intel/pmt/Makefile > > new file mode 100644 > > index 000000000000..5c95cdbb57b1 > > --- /dev/null > > +++ b/drivers/platform/x86/intel/pmt/Makefile > > @@ -0,0 +1,9 @@ > > +# SPDX-License-Identifier: GPL-2.0 > > +# > > +# Makefile for linux/drivers/platform/x86/intel/pmt > > +# Intel Platform Monitoring Technology Drivers > > +# > > + > > +obj-$(CONFIG_INTEL_PMT_CLASS)          += pmt_class.o > > +obj-$(CONFIG_INTEL_PMT_TELEMETRY)      += pmt_telemetry.o > > +obj-$(CONFIG_INTEL_PMT_CRASHLOG)       += pmt_crashlog.o > > diff --git a/drivers/platform/x86/intel_pmt_class.c > > b/drivers/platform/x86/intel/pmt/pmt_class.c > > similarity index 99% > > rename from drivers/platform/x86/intel_pmt_class.c > > rename to drivers/platform/x86/intel/pmt/pmt_class.c > > index c86ff15b1ed5..05c16a812e00 100644 > > --- a/drivers/platform/x86/intel_pmt_class.c > > +++ b/drivers/platform/x86/intel/pmt/pmt_class.c > > @@ -13,7 +13,7 @@ > >  #include > >  #include > >   > > -#include "intel_pmt_class.h" > > +#include "pmt_class.h" > >   > >  #define PMT_XA_START           0 > >  #define PMT_XA_MAX             INT_MAX > > diff --git a/drivers/platform/x86/intel_pmt_class.h > > b/drivers/platform/x86/intel/pmt/pmt_class.h > > similarity index 100% > > rename from drivers/platform/x86/intel_pmt_class.h > > rename to drivers/platform/x86/intel/pmt/pmt_class.h > > diff --git a/drivers/platform/x86/intel_pmt_crashlog.c > > b/drivers/platform/x86/intel/pmt/pmt_crashlog.c > > similarity index 99% > > rename from drivers/platform/x86/intel_pmt_crashlog.c > > rename to drivers/platform/x86/intel/pmt/pmt_crashlog.c > > index 56963ceb6345..e869dfcdce31 100644 > > --- a/drivers/platform/x86/intel_pmt_crashlog.c > > +++ b/drivers/platform/x86/intel/pmt/pmt_crashlog.c > > @@ -15,7 +15,7 @@ > >  #include > >  #include > >   > > -#include "intel_pmt_class.h" > > +#include "pmt_class.h" > >   > >  #define DRV_NAME               "pmt_crashlog" > >   > > diff --git a/drivers/platform/x86/intel_pmt_telemetry.c > > b/drivers/platform/x86/intel/pmt/pmt_telemetry.c > > similarity index 99% > > rename from drivers/platform/x86/intel_pmt_telemetry.c > > rename to drivers/platform/x86/intel/pmt/pmt_telemetry.c > > index 9b95ef050457..b90ae25caba5 100644 > > --- a/drivers/platform/x86/intel_pmt_telemetry.c > > +++ b/drivers/platform/x86/intel/pmt/pmt_telemetry.c > > @@ -15,7 +15,7 @@ > >  #include > >  #include > >   > > -#include "intel_pmt_class.h" > > +#include "pmt_class.h" > >   > >  #define TELEM_DEV_NAME         "pmt_telemetry" > >   > > -- > > 2.25.1 > > >