Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp309675rdb; Thu, 8 Feb 2024 06:42:38 -0800 (PST) X-Google-Smtp-Source: AGHT+IF0BP8tHCXurPECLDnZQX+/FX0whb46xfeJ6ou4zXIZO2kOkiK1jMoHlXrBIDzlP4S+eyT3 X-Received: by 2002:a05:6358:7205:b0:178:a555:c312 with SMTP id h5-20020a056358720500b00178a555c312mr6750298rwa.32.1707403358289; Thu, 08 Feb 2024 06:42:38 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707403358; cv=pass; d=google.com; s=arc-20160816; b=szHcN29k6kN3D5KLxtS4xoGvkSHG6DWwajDuHmCJRw1Yz9s66x0O6V56LORlYID6Nk We6s1G85AE9I4a8fY2X2/7+oip1I9poaKnmneAVNO/MDmCSPGnjXGCItDvpf7qHQ8b1M eDNoxhz0wxa/2gYdbYwF0ijsqqpTynPrIwsgfThN9bpgYh5B806gyS7Srm8VS6hzmD09 oCo8BDR9N3jIRyRXx+sxRS/eN/jz/k00+/r8NYxXyuwe9EYZQb5ui4PbwOcYY8DeSean HSCHu1R9yBWV5WNliUpwtQPlJwB6Gf3DQIQOdhwjPxxVKzbaZniq/ij2FbleLlNqsWIP jUKA== 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=FI0X9SGfQHVZCt/eUyPJLLykZcfBLBRlY/DY9DXaGCk=; fh=tDlk/5f3POFLOkUZA1Llj74Efe8QF2MggnJ0WfK7EDM=; b=G8HoLgbSuAYl+m+uEhwjXCMwp1prddi4mKD5hmxtO7tOXDCvlAY/D0MoT6lrjyvq4D 5x+F2YNrHWpTnI1aDLeJr3VBInrM5wm4pZtAgy5Y9jokKHSGJ4anKaALWuoLmIA1BSh/ d4RFlg8MZ5eTP5hnuSGiGwVnvZcxn//E1+lS0mwxQU26ZqXitz3kDbpIdHxEwbuKz5hA Gjbfx0sC7NvGOPSvacQVoGJU/APzSP/BjguIA91Qie3UaIJPzvyWPACoELQaq+b2mvw4 l6f3358cT8luVTjiTTEsPL7pWMR8f/41o0ulTwxz1/bW6JqocDHgQHU89o08X6OLhToa zHCw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jFxvUNvN; 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-kernel+bounces-58242-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58242-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org X-Forwarded-Encrypted: i=2; AJvYcCXwTYtym2p/TSx5yqKvQiUjgyYCxu5Z50y/RXNAT85CBc9GDsWQc/f0RE6CT2APQ7ODLqC0yCTBkBeIh0gr6NuzmlUoF1hJV2DywNjj+A== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id w3-20020a17090a8a0300b00296dfc331f5si1459965pjn.183.2024.02.08.06.42.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 06:42:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-58242-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jFxvUNvN; 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-kernel+bounces-58242-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58242-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id E8BC228203C for ; Thu, 8 Feb 2024 14:42:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 33E2579DA1; Thu, 8 Feb 2024 14:42:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="jFxvUNvN" Received: from mail-lf1-f44.google.com (mail-lf1-f44.google.com [209.85.167.44]) (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 7D69479932 for ; Thu, 8 Feb 2024 14:42:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707403348; cv=none; b=b1yYp8UtRi+xpWQEF6MaWSVf3QP/ExvxcU+RvO1/D4d932kVRXqEwjpPkc9SrEARvRw+wVuCZh3cEKvcnRs/UTHul2aOtPhiVANqz/ZY4CeYVROGD4x+4ecsAHKieZDJ4/GRuw6PxgWLZ8WobUYGsoIjsTwu/l/AUIt0BwPXPdc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707403348; c=relaxed/simple; bh=2gXIrNisH2hKYE3dM+XT24IW2MyW7r93VSxDstBmgLs=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=TvhxWA+L+2uTLhLi30lCTxNbrQt7/iA37CK1RibnDv0LZo0kTGFWa/8Z4kFUBEtI7QbWE2/qzXs3rawOu41EBHUk2yuPpBPM7E24FQo62fKbGq3SoQCehBj8gNLIYRTR2CZCrjcLVeF6bQxi+yf/pWK+BWacsotfp5hRvAlNa7Q= 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=jFxvUNvN; arc=none smtp.client-ip=209.85.167.44 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-f44.google.com with SMTP id 2adb3069b0e04-5116ec49081so719315e87.2 for ; Thu, 08 Feb 2024 06:42:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1707403344; x=1708008144; 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=FI0X9SGfQHVZCt/eUyPJLLykZcfBLBRlY/DY9DXaGCk=; b=jFxvUNvN07XdkGTwoyPMmdH8b+6THpuSGxAACSILHbYSaYSBTxbtzB7Ngo1dnQjhFi jNUuBAhTByef54yrnTJV8sDRrBzOSIxgV2GvQTEyj5xwVnNBOmKkFjVCcd9pzv+JwIqT 6mJxGQmP2A+mbABh30uTSK77T79RI0mA1qPmkRr20E2lTiFwzfOG4Qapb5X17F//ItGq 6NGc3EcBXhfda4DnI9QKQePd4E3Xrg3MQXJbYqFvh169Tf8VaPELNMnPat72RDED6C4k OQ43BG4nyeoWwRrySDlSe1JwEkVAZeiocaiBfIM2Z/S8VliRCJRk3+BWP1EhEfLAb5Hd +hlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707403344; x=1708008144; 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=FI0X9SGfQHVZCt/eUyPJLLykZcfBLBRlY/DY9DXaGCk=; b=Bf+kv+UASqexXgcLH5ev/usyAdoH122F9Lqy4JyH7N8h5pRyOYsPn8NViv1JluyGUb w9oh4KuMNXKPv/FZ4k3JDoziiXiMwlbNmtUt+XgXoeJgKUG9LXem4f+sbcuVGff+WmOP BMEwHFcK22TuK6diIq9IJ3yR7ldCZv5cxz+rmtyezQTd1VaDdjJNR+yWGidpr6VDNuiB EURsiUklV/1D6+uclElxnOPEkcBq/rSq8x/LEyPm8To9qDK/kBJyJM4sQPJweP5mvDf+ PpvrOGPFKfk4U5kc8y80w+xlfB1SMImL83r3fxLrwbWlcJtOtf1fW7hZyTtDOqDqJyPt PM6A== X-Gm-Message-State: AOJu0YzOTegD9kCVhoPT13H82luqukqxzrvSkX/5dGueghlfqaXkfaZx hQdnUBOKuufUGMa/k0bOAoDDDeMiCJ0GWFTERkZxuYUfLjuSCZjifebiVbQr9H0= X-Received: by 2002:a05:6512:128a:b0:511:2088:df39 with SMTP id u10-20020a056512128a00b005112088df39mr8196198lfs.1.1707403344404; Thu, 08 Feb 2024 06:42:24 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCUi4YM86Ets8Vg5hFtp/T1sGjJOA+PTt1xOgCDJvoXyqWCN4B6CtooQgZ5IHX/QJjy7PZoQje8XfEDXGmeD2O9vU/Jun/u+30wb1vIJkQ/9knDod2NTNFv0IjwzjllyiRKqHarHkuwq0AYujC0DkBbZfyBKRLT0q6x4N2c3OX8rRj/l5b0ONgKTYTg5LK4HhfG+0uN9XTGNO4UwYczNocQY8dt2VKtRIi9K7JxQILe3bQ== Received: from [192.168.10.46] (146725694.box.freepro.com. [130.180.211.218]) by smtp.googlemail.com with ESMTPSA id bg10-20020a05600c3c8a00b0040fccf7e8easm1827260wmb.36.2024.02.08.06.42.23 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 08 Feb 2024 06:42:23 -0800 (PST) Message-ID: Date: Thu, 8 Feb 2024 15:42:23 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2] thermal: sysfs: Make trip hysteresis writable along with trip temperature Content-Language: en-US To: "Rafael J. Wysocki" , Linux PM Cc: LKML , Lukasz Luba , Zhang Rui , Srinivas Pandruvada , Manaf Meethalavalappu Pallikunhi References: <2731410.mvXUDI8C0e@kreacher> From: Daniel Lezcano In-Reply-To: <2731410.mvXUDI8C0e@kreacher> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 31/01/2024 19:44, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Trip point temperature can be modified via sysfs if > CONFIG_THERMAL_WRITABLE_TRIPS is enabled and the thermal > zone creator requested that the given trip be writable > in the writable trips mask passed to the registration > function. > > However, trip point hysteresis is treated differently - it is only > writable if the thermal zone has a .set_trip_hyst() operation defined > and neither CONFIG_THERMAL_WRITABLE_TRIPS, nor the writable trips mask > supplied by the zone creator has any bearing on this. That is > inconsistent and confusing, and it generally does not meet user > expectations. > > For this reason, modify create_trip_attrs() to handle trip point > hysteresis in the same way as trip point temperature, so they both > are writable at the same time regardless of what trip point operations > are defined for the thermal zone. > > Link: https://lore.kernel.org/linux-pm/20240106191502.29126-1-quic_manafm@quicinc.com > Signed-off-by: Rafael J. Wysocki > --- Acked-by: Daniel Lezcano -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog