OSDN Git Service

thermal: intel: int340x: Add production mode attribute
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Mon, 23 Jan 2023 16:30:46 +0000 (08:30 -0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 26 Jan 2023 13:47:16 +0000 (14:47 +0100)
commit5c36cf27846a364f830e5ea86b411e05f7c8bd2b
tree9c78e782c54f225e5292c74cd8874de10281770a
parentfee19c692160ae83f50e7b561076e4bd4cceb830
thermal: intel: int340x: Add production mode attribute

It is possible that the system manufacturer locks down thermal tuning
beyond what is usually done on the given platform. In that case user
space calibration tools should not try to adjust the thermal
configuration of the system.

To allow user space to check if that is the case, add a new sysfs
attribute "production_mode" that will be present when the ACPI DCFG
method is present under the INT3400 device object in the ACPI Namespace.

Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Documentation/driver-api/thermal/intel_dptf.rst
drivers/thermal/intel/int340x_thermal/int3400_thermal.c