Linux Power Management development
 help / color / mirror / Atom feed
* [PATCH 1/2] Revert "thermal/core: Deprecate changing cooling device state from userspace"
@ 2022-04-22 14:10 Daniel Lezcano
  2022-04-22 14:10 ` [PATCH 2/2] thermal/governor: Remove deprecated information Daniel Lezcano
  2022-04-22 14:50 ` [PATCH 1/2] Revert "thermal/core: Deprecate changing cooling device state from userspace" Rafael J. Wysocki
  0 siblings, 2 replies; 3+ messages in thread
From: Daniel Lezcano @ 2022-04-22 14:10 UTC (permalink / raw)
  To: rafael, daniel.lezcano
  Cc: srinivas.pandruvada, rui.zhang, linux-pm, linux-kernel,
	Amit Kucheria

This reverts commit a67a46af4ad6342378e332b7420c1d1a2818c53f.

It has been reported the warning is annoying as the cooling device
state is still needed on some production system.

Meanwhile we provide a way to consolidate the thermal framework to
prevent multiple actors acting on the cooling devices with conflicting
decisions, let's revert this warning.

Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
---
 drivers/thermal/thermal_sysfs.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/drivers/thermal/thermal_sysfs.c b/drivers/thermal/thermal_sysfs.c
index f154bada2906..1c4aac8464a7 100644
--- a/drivers/thermal/thermal_sysfs.c
+++ b/drivers/thermal/thermal_sysfs.c
@@ -610,9 +610,6 @@ cur_state_store(struct device *dev, struct device_attribute *attr,
 	unsigned long state;
 	int result;
 
-	dev_warn_once(&cdev->device,
-		      "Setting cooling device state is deprecated\n");
-	
 	if (sscanf(buf, "%ld\n", &state) != 1)
 		return -EINVAL;
 
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-04-22 14:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-22 14:10 [PATCH 1/2] Revert "thermal/core: Deprecate changing cooling device state from userspace" Daniel Lezcano
2022-04-22 14:10 ` [PATCH 2/2] thermal/governor: Remove deprecated information Daniel Lezcano
2022-04-22 14:50 ` [PATCH 1/2] Revert "thermal/core: Deprecate changing cooling device state from userspace" Rafael J. Wysocki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox