]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ACPI: utils: introduce acpi_get_local_u64_address()
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Tue, 28 May 2024 19:29:33 +0000 (14:29 -0500)
committerMark Brown <broonie@kernel.org>
Mon, 10 Jun 2024 11:48:09 +0000 (12:48 +0100)
commit0b7e448119428e1dcb854abb5855f66966fb82dc
tree93b3da5094cf7740ba6aaabf7a094fb8c8d0b4b3
parenta1708fda9388c83215f0be82ad47df10be6e1975
ACPI: utils: introduce acpi_get_local_u64_address()

The ACPI _ADR is a 64-bit value. We changed the definitions in commit
ca6f998cf9a2 ("ACPI: bus: change _ADR representation to 64 bits") but
some helpers still assume the value is a 32-bit value.

This patch adds a new helper to extract the full 64-bits. The existing
32-bit helper is kept for backwards-compatibility and cases where the
_ADR is known to fit in a 32-bit value.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Takashi Iwai <tiwai@suse.de>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20240528192936.16180-2-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/acpi/utils.c
include/linux/acpi.h