* [PATCH] platform/x86: dell_smbios: Resolve dependency error on ACPI_WMI
@ 2018-03-11 0:28 Darren Hart
2018-03-12 9:23 ` Andy Shevchenko
0 siblings, 1 reply; 3+ messages in thread
From: Darren Hart @ 2018-03-11 0:28 UTC (permalink / raw)
To: platform-driver-x86, LKML
Cc: Andy Shevchenko, Mario Limonciello, Linus Torvalds
Similarly to DCDBAS for DELL_SMBIOS_SMM, if DELL_SMBIOS_WMI is enabled,
DELL_SMBIOS becomes dependent on ACPI_WMI. Update the depends line to
prevent a configuration where DELL_SMBIOS=y and either backend
dependency =m. Update the comment accordingly.
Cc: Mario Limonciello <mario.limonciello@dell.com>
Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Darren Hart (VMware) <dvhart@infradead.org>
---
Linus, just a heads up on this. Unlikely you would encounter this in
your builds, but just in case, I wanted you to know we (0-day) caught it
and are verifying the fix.
drivers/platform/x86/Kconfig | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/platform/x86/Kconfig b/drivers/platform/x86/Kconfig
index e55b008..eef5eef 100644
--- a/drivers/platform/x86/Kconfig
+++ b/drivers/platform/x86/Kconfig
@@ -106,13 +106,13 @@ config ASUS_LAPTOP
If you have an ACPI-compatible ASUS laptop, say Y or M here.
#
-# If the DELL_SMBIOS_SMM feature is enabled, the DELL_SMBIOS driver
-# becomes dependent on the DCDBAS driver. The "depends" line prevents a
-# configuration where DELL_SMBIOS=y while DCDBAS=m.
+# The DELL_SMBIOS driver depends on ACPI_WMI and/or DCDBAS if those
+# backends are selected. The "depends" line prevents a configuration
+# where DELL_SMBIOS=y while either of those dependencies =m.
#
config DELL_SMBIOS
tristate "Dell SMBIOS driver"
- depends on DCDBAS || DCDBAS=n
+ depends on (DCDBAS || DCDBAS=n) && (ACPI_WMI || ACPI_WMI=n)
---help---
This provides support for the Dell SMBIOS calling interface.
If you have a Dell computer you should enable this option.
--
2.9.3
--
Darren Hart
VMware Open Source Technology Center
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] platform/x86: dell_smbios: Resolve dependency error on ACPI_WMI
2018-03-11 0:28 [PATCH] platform/x86: dell_smbios: Resolve dependency error on ACPI_WMI Darren Hart
@ 2018-03-12 9:23 ` Andy Shevchenko
2018-03-12 20:29 ` Darren Hart
0 siblings, 1 reply; 3+ messages in thread
From: Andy Shevchenko @ 2018-03-12 9:23 UTC (permalink / raw)
To: Darren Hart
Cc: Platform Driver, LKML, Andy Shevchenko, Mario Limonciello,
Linus Torvalds
On Sun, Mar 11, 2018 at 2:28 AM, Darren Hart <dvhart@infradead.org> wrote:
> Similarly to DCDBAS for DELL_SMBIOS_SMM, if DELL_SMBIOS_WMI is enabled,
> DELL_SMBIOS becomes dependent on ACPI_WMI. Update the depends line to
> prevent a configuration where DELL_SMBIOS=y and either backend
> dependency =m. Update the comment accordingly.
> +# The DELL_SMBIOS driver depends on ACPI_WMI and/or DCDBAS if those
> +# backends are selected. The "depends" line prevents a configuration
> +# where DELL_SMBIOS=y while either of those dependencies =m.
> #
> config DELL_SMBIOS
> tristate "Dell SMBIOS driver"
> - depends on DCDBAS || DCDBAS=n
> + depends on (DCDBAS || DCDBAS=n) && (ACPI_WMI || ACPI_WMI=n)
A nit: Perhaps separate depends on line for those two?
--
With Best Regards,
Andy Shevchenko
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] platform/x86: dell_smbios: Resolve dependency error on ACPI_WMI
2018-03-12 9:23 ` Andy Shevchenko
@ 2018-03-12 20:29 ` Darren Hart
0 siblings, 0 replies; 3+ messages in thread
From: Darren Hart @ 2018-03-12 20:29 UTC (permalink / raw)
To: Andy Shevchenko
Cc: Platform Driver, LKML, Andy Shevchenko, Mario Limonciello,
Linus Torvalds
On Mon, Mar 12, 2018 at 11:23:20AM +0200, Andy Shevchenko wrote:
> On Sun, Mar 11, 2018 at 2:28 AM, Darren Hart <dvhart@infradead.org> wrote:
> > Similarly to DCDBAS for DELL_SMBIOS_SMM, if DELL_SMBIOS_WMI is enabled,
> > DELL_SMBIOS becomes dependent on ACPI_WMI. Update the depends line to
> > prevent a configuration where DELL_SMBIOS=y and either backend
> > dependency =m. Update the comment accordingly.
>
> > +# The DELL_SMBIOS driver depends on ACPI_WMI and/or DCDBAS if those
> > +# backends are selected. The "depends" line prevents a configuration
> > +# where DELL_SMBIOS=y while either of those dependencies =m.
> > #
> > config DELL_SMBIOS
> > tristate "Dell SMBIOS driver"
> > - depends on DCDBAS || DCDBAS=n
> > + depends on (DCDBAS || DCDBAS=n) && (ACPI_WMI || ACPI_WMI=n)
>
> A nit: Perhaps separate depends on line for those two?
Agreed, resending v2, will run through testing, and send to Linus by EOD
tomorrow.
--
Darren Hart
VMware Open Source Technology Center
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-03-12 20:29 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-11 0:28 [PATCH] platform/x86: dell_smbios: Resolve dependency error on ACPI_WMI Darren Hart
2018-03-12 9:23 ` Andy Shevchenko
2018-03-12 20:29 ` Darren Hart
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).