From patchwork Fri Apr 22 14:10:28 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 565165 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 60B66C433FE for ; Fri, 22 Apr 2022 14:11:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1448446AbiDVOOG (ORCPT ); Fri, 22 Apr 2022 10:14:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34280 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1448412AbiDVON5 (ORCPT ); Fri, 22 Apr 2022 10:13:57 -0400 Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8E28E5AA59 for ; Fri, 22 Apr 2022 07:10:58 -0700 (PDT) Received: by mail-wm1-x32f.google.com with SMTP id u17-20020a05600c211100b0038eaf4cdaaeso8054128wml.1 for ; Fri, 22 Apr 2022 07:10:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=PYeD7CphIZ5NH/umo7M0wjdcvUu12ITU6k0/hQvLpn4=; b=ZALoyjG8zCeEignAj44ruQpeuReq8DfH1PQ77vyqmSCU6416JBsIknodyI9lNyoqVt 0lQ1f4NBwYJDpwMZ5QiWkdT5dcveL1rzIeSJn3bfuNMM8ltdQZWwc8wPeSP3usbealiB Xvu6jN+bwjLIIgDp6D0CK03EOuT5rJxZ0XoukaPsM+C5PKSFVuloS3nTU4ICshUgxgCr vL6vSqLI1bydjYbf4+xXByyC+gi7QxfIALHv2phJfVVbzBxLhrfCYR0dhLUH7BxM22MP hQMCQUv48hKvYY247w1nv+GGvk9EciUifUWvlPJk3H0k814PutkwIDGmdV0CqWoGzcpV /Xtw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=PYeD7CphIZ5NH/umo7M0wjdcvUu12ITU6k0/hQvLpn4=; b=kZk0MJ6vgaolaoBdu4yFOCiRLB4EfbvdWAjyVA07o4OjTdh248g5dmZzDSmM+KAdbL B2zCR0ap6HXTFH1is6QZ75aG/DP5QlxETEdtP3fz2KY8YrRiI17c4GaaArEPM1LOqJMu 0LcyWCEU2L2HdXh19hEe5M0cVqzi8zZcqcCGYnP2EnTChDi9qCpt9eFYW3qnFLEbjPDM +DYCZ/TvzcRF1JGYd4sPJCJfIA6C5GmsqHA9/bB9JMnQ14k7RcboxHDe1326aHY9y7+1 MRg6ZE+iBTOf3BD3luVXZlbClcBpz2LRMNhtSrAtInH5lnr8KyOnjQ+fr1ZBiG71oEJA ELIQ== X-Gm-Message-State: AOAM532bjeGBaEmY+FEKVPMIS6qphfmtGHvJnpqTm34Ra3WHKe/XG9gh ASha2uYW8s0DzmsPMnBG5yXElw== X-Google-Smtp-Source: ABdhPJw/DrTqoY84qNlsyOJcHJJoiMOi4jdHj0vLja2zZ+SWSQRqWgoDISxntvHncsYjySGdb9tGcQ== X-Received: by 2002:a05:600c:4e94:b0:392:8e2a:d794 with SMTP id f20-20020a05600c4e9400b003928e2ad794mr13888303wmq.107.1650636657065; Fri, 22 Apr 2022 07:10:57 -0700 (PDT) Received: from localhost.localdomain (static-176-182-171-101.ncc.abo.bbox.fr. [176.182.171.101]) by smtp.gmail.com with ESMTPSA id f189-20020a1c38c6000000b0038ff83b9792sm4607430wma.43.2022.04.22.07.10.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 07:10:56 -0700 (PDT) From: Daniel Lezcano To: rafael@kernel.org, daniel.lezcano@linaro.org Cc: srinivas.pandruvada@intel.com, rui.zhang@intel.com, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Amit Kucheria Subject: [PATCH 1/2] Revert "thermal/core: Deprecate changing cooling device state from userspace" Date: Fri, 22 Apr 2022 16:10:28 +0200 Message-Id: <20220422141029.968212-1-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org 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 --- 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;