From: "David E. Box" <david.e.box@linux.intel.com>
To: Hans de Goede <hdegoede@redhat.com>, Mark Gross <mgross@linux.intel.com>
Cc: Andy Shevchenko <andy@infradead.org>,
platform-driver-x86@vger.kernel.org,
Linus Torvalds <torvalds@linux-foundation.org>
Subject: Re: [PATCH] platform/x86: pmt: Make PMT Kconfig options depend on INTEL_PMT_CLASS
Date: Tue, 26 Jan 2021 14:00:07 -0800 [thread overview]
Message-ID: <c7099bece001aa0803c8357a44b114d2d26e94e4.camel@linux.intel.com> (raw)
In-Reply-To: <20210126202042.95301-1-hdegoede@redhat.com>
Hi Hans,
Sorry for missing the discussion on this. Need to fix my mail
filtering. I just submitted patches that instead make INTEL_PMT_CLASS
non-user-selectable, leaving the other dependencies in place. Having
the class driver user-selectable was a mistake.
I also did go ahead and add a dependancy on the MFD driver since all
current PMT features are only exposed through this driver. So users
will only see the following options:
MFD_INTEL_PMT
INTEL_PMT_TELEMETRY (selects INTEL_PMT_CLASS)
INTEL_PMT_CRASHLOG (selects INTEL_PMT_CLASS)
David
On Tue, 2021-01-26 at 21:20 +0100, Hans de Goede wrote:
> Make the PMT Kconfig options depend on INTEL_PMT_CLASS instead of
> selecting it. Select should only be used with hidden options and
> INTEL_PMT_CLASS is not hidden.
>
> This will stop Kconfig from asking if INTEL_PMT_TELEMETRY and
> INTEL_PMT_CRASHLOG should be enabled after the user says no
> to the INTEL_PMT_CLASS prompt.
>
> Reported-by: Linus Torvalds <torvalds@linux-foundation.org>
> Cc: Alexander Duyck <alexander.h.duyck@linux.intel.com>
> Cc: David E. Box <david.e.box@linux.intel.com>
> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
> ---
> drivers/platform/x86/Kconfig | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/platform/x86/Kconfig
> b/drivers/platform/x86/Kconfig
> index 9a73e7baa344..d4f32fc0e40e 100644
> --- a/drivers/platform/x86/Kconfig
> +++ b/drivers/platform/x86/Kconfig
> @@ -1383,7 +1383,7 @@ config INTEL_PMT_CLASS
>
> config INTEL_PMT_TELEMETRY
> tristate "Intel Platform Monitoring Technology (PMT)
> Telemetry driver"
> - select INTEL_PMT_CLASS
> + depends on INTEL_PMT_CLASS
> help
> The Intel Platform Monitory Technology (PMT) Telemetry
> driver provides
> access to hardware telemetry metrics on devices that
> support the
> @@ -1394,7 +1394,7 @@ config INTEL_PMT_TELEMETRY
>
> config INTEL_PMT_CRASHLOG
> tristate "Intel Platform Monitoring Technology (PMT) Crashlog
> driver"
> - select INTEL_PMT_CLASS
> + depends on INTEL_PMT_CLASS
> help
> The Intel Platform Monitoring Technology (PMT) crashlog
> driver provides
> access to hardware crashlog capabilities on devices that
> support the
next prev parent reply other threads:[~2021-01-27 1:05 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-26 20:20 [PATCH] platform/x86: pmt: Make PMT Kconfig options depend on INTEL_PMT_CLASS Hans de Goede
2021-01-26 22:00 ` David E. Box [this message]
2021-02-03 10:58 ` Hans de Goede
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c7099bece001aa0803c8357a44b114d2d26e94e4.camel@linux.intel.com \
--to=david.e.box@linux.intel.com \
--cc=andy@infradead.org \
--cc=hdegoede@redhat.com \
--cc=mgross@linux.intel.com \
--cc=platform-driver-x86@vger.kernel.org \
--cc=torvalds@linux-foundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox