Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp347789rdb; Thu, 22 Feb 2024 05:50:55 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVCORLp4lURMGXkCdY8j07rqC94Hr/AoONSRMX7/kIqkwLgXTUdJsDVrUlIjrIu/pP3a8bEV5rrXkFLwnUfo7x3n72eH4X5ZZ2nNhSLuQ== X-Google-Smtp-Source: AGHT+IGoumHiJNTbgIvZR5h2T7Hv4XODegj8A1oxvfgAMW1co1uyKO0rmM0tbiBuwb8JzeFtFCpp X-Received: by 2002:a05:620a:2110:b0:787:2b28:b7ad with SMTP id l16-20020a05620a211000b007872b28b7admr23304062qkl.4.1708609855049; Thu, 22 Feb 2024 05:50:55 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708609855; cv=pass; d=google.com; s=arc-20160816; b=oGHwTi7oBHNLobjjzSVkUj85pOR4JTYsYEjGb04nVFpxEJPCDd+kjhTKuEjP3NJRtX C5dVAUwjYA4nVthXN3rSVTp3fYdgbtbNTzI03elkXZiW8sxq7ZkcjWUjTsQ074i2AAdD kUt7335Wa+RKRo2ErtSx9F3fEynuvjRMA7Zolc3oBX+A2OufBBzFLxRImYxFwH+YUA6p Pv2aPuqazAkldQMKJsV4vxhknOkV8UMvHB/VLlB4GuqRziWpbEm2YJNtviJRQwiQIEhe dqyiMNQbLjAmchA4QcIIxHmXxxarLU/IVKbWC94B6kvxEenm111sG9OTCJ7LfZcdbpif O/uA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=pJephV2azj0AUd3p7RK/qiB+wFc6v/rmXTqmszZdGYI=; fh=lMXDWc+SViruGOjO+QyNdA9KONr0L5bT8u8r3PlNW6U=; b=k4sJBNYv5v2gWoJO0+hMCd6LJ14CuHtRewl2SJgIZVHPPFmmRKa2K9wcS1Xnk1eFuB LU+okAJvNSLobocw/8NCcbk/HXLlNWGt9WtRhGlgG2hxK8+fEKozj34MrvAxLTQJPNtf rQKv9IrXqLNTYis88vyuCQYqG7dO+h0FB9OG6vQEk45Yy6aWFtxNvxiFw5j+80ClUcto I8qWTvY2MwUjxascEpCFW4D2ff/awQ+w9btYWkapD0ijSOmBP3gv2wH9pJxz+cQRDvF8 z9peiGDPoBOvnhn+ufNnLLu0Ym5AVNZXn19Ar3ntVwxV++d1bewcixfSYb2kIEtucKva jfZw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Crwxl1B0; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-wireless+bounces-3925-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-3925-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id w12-20020ae9e50c000000b00785b87f092bsi12686472qkf.401.2024.02.22.05.50.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 05:50:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-3925-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Crwxl1B0; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-wireless+bounces-3925-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-3925-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id D7CA01C22AC2 for ; Thu, 22 Feb 2024 13:50:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E13CF1350D0; Thu, 22 Feb 2024 13:50:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Crwxl1B0" X-Original-To: linux-wireless@vger.kernel.org Received: from mail-lf1-f48.google.com (mail-lf1-f48.google.com [209.85.167.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1EB891350C6 for ; Thu, 22 Feb 2024 13:50:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708609815; cv=none; b=PwXxJOEf5XCycgFcX3SaN4kPQziDb7V3QOsXeuGkfN/RiVoj0QnX7EPw6DNeY+Un4D8f3OdQ2JZ0TRxxcJgOC67ImOcWqUYZOAhFxngV09YM6SVz38W8AAaLjz39vpDiSNb4R25Ww/e9Azyy8D2X9vos59hX2U3E3yM5u7QmXnI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708609815; c=relaxed/simple; bh=sxjrviJKUO4ego+bavj+MGIR978E5EVGQ1XQmUcD98o=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=g4/WK2q5FQI309rYdEDAwKXPKfMnQkPzRb8NtKcbt1yykGobxV5Pu5KYdOkAfHkVvHQbD6chTpdqmLf8mr+9x0cPgVBttmTTwrZxydTKDRx/CQ6YFPJ1ds0tbHg4BHqKBPNcvnQEQjNI6KryC9cMPovgck7tf1DhOkNJJqrh6ts= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=Crwxl1B0; arc=none smtp.client-ip=209.85.167.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-lf1-f48.google.com with SMTP id 2adb3069b0e04-512be6fda52so5048117e87.0 for ; Thu, 22 Feb 2024 05:50:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708609812; x=1709214612; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=pJephV2azj0AUd3p7RK/qiB+wFc6v/rmXTqmszZdGYI=; b=Crwxl1B0FjzMUgXzRAjhwhKxjXDFfw3cobauF6YUniUd/URytp6IHP1Sw1shFQENJY JvKlW6TCh6riS9OCk79869+f/zv6LF4/dBdtLhdQnMx6c+sT6Hz2fi5n+CLuAo5k3ypd tkMlRz5VwsMn8ho+xMbIhOlg0TS5LnwI/it2l6l5kAJwpNwITibGgZwkTQqtDYWQj1sR v8lRBtdRKj6OV26AgIDO1TFdzb5PWjhYPv38wC4o3EsRV3uYEGUO3zGPwpXhkY476LHS LWWZUrtbjxnULkm39+/fgX5Lq/g7OjIPXoZGjOIMV8G8b1UYnv1fDiGhyxYC6yvMGJY7 X28A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708609812; x=1709214612; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=pJephV2azj0AUd3p7RK/qiB+wFc6v/rmXTqmszZdGYI=; b=orvZaN0r+C6Q9cYj9535OmfEZQCSDJu+bV9twG8mZLRObpgFyqlAXpVCR27jG0xywZ dDAoOTN1YA33dXC+P3ku3XCoPZm+4v7XwqC/fHFY5W+2kZevJdVZErOuzr1+n+HiZ5Yb tCbDSt1EQExUMJZzgyu4mm2F9q2t93KpYILPozSn2327++MWXTUEwbeCqY1Sr77KaRiS ESX1RNcFn3kYciqd50S3/PgG0kIWkjT9wWOaSlsizxQG2IismqGbc6n7vl/4vJWnfL9/ b3z4oOMwO1JD8OAawthAsnH6QOXD1sw2WUV1l08dIXT/qpkUeAIxU9t+0cal/Xjm9yon P+WA== X-Forwarded-Encrypted: i=1; AJvYcCXb/ouoQhlw5bTwZwzBvh9mYdcbIAlycQXn5Edzdc/8HUQRXN7vZPG7zJJBqppDjm6fRNhZy8kJ5wbDGjdo8dBmHHvWxWCbXYiMKJFVYDg= X-Gm-Message-State: AOJu0YzIv2WVFk8aKPheciSZ6zWD4cPba7rTxwTOVB9U2NtzpKESs46Y sAWN+wludZ6G0eCy1cG0FQUg4CSAQWOxBqWzLiPVZPZKnYO+4Z2nr+lztQzeDZQ= X-Received: by 2002:a05:6512:4cd:b0:512:c802:7a9 with SMTP id w13-20020a05651204cd00b00512c80207a9mr5048333lfq.38.1708609812269; Thu, 22 Feb 2024 05:50:12 -0800 (PST) Received: from [192.168.10.46] (146725694.box.freepro.com. [130.180.211.218]) by smtp.googlemail.com with ESMTPSA id r11-20020a05600c35cb00b004120537210esm6505491wmq.46.2024.02.22.05.50.11 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 22 Feb 2024 05:50:11 -0800 (PST) Message-ID: Date: Thu, 22 Feb 2024 14:50:11 +0100 Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 1/9] thermal: Get rid of CONFIG_THERMAL_WRITABLE_TRIPS Content-Language: en-US To: "Rafael J. Wysocki" , Linux PM Cc: Lukasz Luba , LKML , Stanislaw Gruszka , Srinivas Pandruvada , Zhang Rui , netdev@vger.kernel.org, Ido Schimmel , Petr Machata , Miri Korenblit , linux-wireless@vger.kernel.org, Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Manaf Meethalavalappu Pallikunhi References: <6017196.lOV4Wx5bFT@kreacher> <4545870.LvFx2qVVIh@kreacher> From: Daniel Lezcano In-Reply-To: <4545870.LvFx2qVVIh@kreacher> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 12/02/2024 19:26, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > The only difference made by CONFIG_THERMAL_WRITABLE_TRIPS is whether or > not the writable trips mask passed during thermal zone registration > will take any effect, but whoever passes a non-zero writable trips mask > to thermal_zone_device_register_with_trips() can be forgiven thinking > that it will always work. > > Moreover, some thermal drivers expect user space to set trip temperature > values, so they select CONFIG_THERMAL_WRITABLE_TRIPS, possibly overriding > a manual choice to unset it and going against the design purportedly > allowing system integrators to decide on the writability of trip points > for the given kernel build. It is also set in one platform's defconfig. > > Forthermore, CONFIG_THERMAL_WRITABLE_TRIPS only affects trip temperature, > because trip hysteresis is writable as long as the thermal zone provides > a callback to update it, regardless of the CONFIG_THERMAL_WRITABLE_TRIPS > value. > > The above means that the symbol in question is used inconsistently and > its purpose is at least moot, so remove it and always take the writable > trip mask passed to thermal_zone_device_register_with_trips() into > account. > > Signed-off-by: Rafael J. Wysocki Reviewed-by: Daniel Lezcano -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog