linux/drivers/thermal/intel/int340x_thermal
Linus Torvalds d9c8e52ff9 thermal: int340x: fix build on 32-bit targets
Commit aeb58c860d ("thermal/drivers/int340x: processor_thermal: Suppot
64 bit RFIM responses") started using 'readq()' to read 64-bit status
responses from the int340x hardware.

That's all fine and good, but on 32-bit targets a 64-bit 'readq()' is
ambiguous, since it's no longer an atomic access.  Some hardware might
require 64-bit accesses, and other hardware might want low word first or
high word first.

It's quite likely that the driver isn't relevant in a 32-bit environment
any more, and there's a patch floating around to just make it depend on
X86_64, but let's make it buildable on x86-32 anyway.

The driver previously just read the low 32 bits, so the hardware
certainly is ok with 32-bit reads, and in a little-endian environment
the low word first model is the natural one.

So just add the include for the 'io-64-nonatomic-lo-hi.h' version.

Fixes: aeb58c860d ("thermal/drivers/int340x: processor_thermal: Suppot 64 bit RFIM responses")
Reported-by: Jakub Kicinski <kuba@kernel.org>
Cc: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Cc: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2021-11-12 10:56:25 -08:00
..
acpi_thermal_rel.c acpi: Remove header dependency 2020-03-21 16:00:21 +01:00
acpi_thermal_rel.h
int340x_thermal_zone.c thermal/drivers/intel: Initialize RW trip to THERMAL_TEMP_INVALID 2021-05-14 09:37:27 +02:00
int340x_thermal_zone.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 288 2019-06-05 17:36:37 +02:00
int3400_thermal.c thermal: int340x: delete bogus length check 2021-10-05 16:46:27 +02:00
int3401_thermal.c thermal/drivers/int340x: Improve the tcc offset saving for suspend/resume 2021-10-21 11:46:24 +02:00
int3402_thermal.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
int3403_thermal.c thermal: int340x: Support Alder Lake 2020-12-17 15:29:30 +01:00
int3406_thermal.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
Kconfig thermal: int340x: processor_thermal: Refactor MMIO interface 2020-12-10 12:29:47 +01:00
Makefile thermal/drivers/int340x/processor_thermal: Add PCI MMIO based thermal driver 2021-07-04 18:28:04 +02:00
processor_thermal_device_pci_legacy.c thermal/drivers/int340x: Improve the tcc offset saving for suspend/resume 2021-10-21 11:46:24 +02:00
processor_thermal_device_pci.c thermal/drivers/int340x: Improve the tcc offset saving for suspend/resume 2021-10-21 11:46:24 +02:00
processor_thermal_device.c thermal/drivers/int340x: Improve the tcc offset saving for suspend/resume 2021-10-21 11:46:24 +02:00
processor_thermal_device.h thermal/drivers/int340x: processor_thermal: Suppot 64 bit RFIM responses 2021-11-04 19:56:52 +01:00
processor_thermal_mbox.c thermal: int340x: fix build on 32-bit targets 2021-11-12 10:56:25 -08:00
processor_thermal_rapl.c thermal: int340x: processor_thermal: Refactor MMIO interface 2020-12-10 12:29:47 +01:00
processor_thermal_rfim.c thermal/drivers/int340x: processor_thermal: Suppot 64 bit RFIM responses 2021-11-04 19:56:52 +01:00