drivers/intel/dptf: Add missing Scope operator for _FIF
Missed one other scope operator in the DPTF cleanup. This one is for the fan device, and without this fix, the kernel isn't able to properly control the fan (it gets confused about whether it's ACPI 4+ compatible or not). BUG=b:149722146 TEST=verify /sys/class/thermal/cooling_zone0/max_state returns > 1, and /sys/class/thermal/cooling_zone0/cur_state is writable, and writing the value of `max_state` causes the fan to spin faster. Signed-off-by: Tim Wawrzynczak <twawrzynczak@chromium.org> Change-Id: I7bd83967ace761ddd17eaeae9c25abb0b2cbe413 Reviewed-on: https://review.coreboot.org/c/coreboot/+/43840 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Furquan Shaikh <furquan@google.com>
This commit is contained in:
parent
8d55f167bf
commit
3a658add7d
|
@ -209,9 +209,11 @@ static void write_options(const struct drivers_intel_dptf_config *config)
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
/* Fan options */
|
/* Fan options */
|
||||||
|
dptf_write_scope(DPTF_FAN);
|
||||||
dptf_write_fan_options(config->options.fan.fine_grained_control,
|
dptf_write_fan_options(config->options.fan.fine_grained_control,
|
||||||
config->options.fan.step_size,
|
config->options.fan.step_size,
|
||||||
config->options.fan.low_speed_notify);
|
config->options.fan.low_speed_notify);
|
||||||
|
acpigen_pop_len(); /* Scope */
|
||||||
|
|
||||||
/* TSR options */
|
/* TSR options */
|
||||||
for (p = DPTF_TEMP_SENSOR_0, i = 0; p <= DPTF_TEMP_SENSOR_3; ++p, ++i) {
|
for (p = DPTF_TEMP_SENSOR_0, i = 0; p <= DPTF_TEMP_SENSOR_3; ++p, ++i) {
|
||||||
|
|
Loading…
Reference in New Issue