[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <eff01b04545eb14f5547b45b1c620e244ce25631.camel@linux.intel.com>
Date: Wed, 21 Apr 2021 10:32:53 -0700
From: "David E. Box" <david.e.box@...ux.intel.com>
To: Arnd Bergmann <arnd@...nel.org>,
Hans de Goede <hdegoede@...hat.com>,
Mark Gross <mgross@...ux.intel.com>,
Gayatri Kammela <gayatri.kammela@...el.com>
Cc: Arnd Bergmann <arnd@...db.de>,
Andy Shevchenko <andriy.shevchenko@...ux.intel.com>,
Lee Jones <lee.jones@...aro.org>,
Maximilian Luz <luzmaximilian@...il.com>,
Mika Westerberg <mika.westerberg@...ux.intel.com>,
platform-driver-x86@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] platform/x86: intel_pmc_core: add ACPI dependency
Thanks for the fix Arnd. Thought I could get away with not adding the
dependency since the function is stubbed but didn't realize struct
acpi_device wouldn't be defined. Should have build tested it.
David
On Wed, 2021-04-21 at 15:49 +0200, Arnd Bergmann wrote:
> From: Arnd Bergmann <arnd@...db.de>
>
> The driver now fails to build without ACPI:
>
> drivers/platform/x86/intel_pmc_core.c: In function
> 'pmc_core_get_tgl_lpm_reqs':
> drivers/platform/x86/intel_pmc_core.c:617:41: error: invalid use of
> undefined type 'struct acpi_device'
> 617 | out_obj = acpi_evaluate_dsm(adev->handle,
> &s0ix_dsm_guid, 0,
>
> This could probably be made optional, but it won't be used without
> ACPI in practice, so just add a Kconfig dependency.
>
> Fixes: 428131364f00 ("platform/x86: intel_pmc_core: Get LPM
> requirements for Tiger Lake")
> Signed-off-by: Arnd Bergmann <arnd@...db.de>
> ---
> drivers/platform/x86/Kconfig | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/platform/x86/Kconfig
> b/drivers/platform/x86/Kconfig
> index 697fc446ac41..2714f7c3843e 100644
> --- a/drivers/platform/x86/Kconfig
> +++ b/drivers/platform/x86/Kconfig
> @@ -1194,6 +1194,7 @@ config INTEL_MRFLD_PWRBTN
> config INTEL_PMC_CORE
> tristate "Intel PMC Core driver"
> depends on PCI
> + depends on ACPI
> help
> The Intel Platform Controller Hub for Intel Core SoCs
> provides access
> to Power Management Controller registers via various
> interfaces. This
Powered by blists - more mailing lists