Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp330936rdd; Tue, 9 Jan 2024 05:43:19 -0800 (PST) X-Google-Smtp-Source: AGHT+IFeu++FZAj36g1kZQ3wfSAllAcKHwr/4VTARAwW7M5cL7Un2Bwl7El2XHl5GJ50tgMYH+ks X-Received: by 2002:a05:620a:10a1:b0:783:28e9:bca6 with SMTP id h1-20020a05620a10a100b0078328e9bca6mr2034715qkk.145.1704807799708; Tue, 09 Jan 2024 05:43:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704807799; cv=none; d=google.com; s=arc-20160816; b=R1jCloLiYrzh2hU/zzSCDJSmv4fTMgw0moRVp1ZsaxCI+Vwq490XDTDGCOUTzpIkES 1RubUrapMKs0w87xkgzzLtRiNhDt+BXsyDVAYlt7u1pRooFDPpNXJGXFyoNNCszJpSM3 /iDdONqFkD/WTvNV0EEE9y46/KWeYxzhr3ywkRDwoUUyF9Danvx5oDryVjU7crh7VwPX jCkYNZIof/Yr6SmKO0JBBYq4lErfPJxHgw4N4vBqnVk9kEmZcac81dMs+KYz41PshnmF sOp4QzePYGntoAWd/T+q94MxdSQCngSWas3l92cXRJ8SWj4HGWGjSQocxPF20U71YJ+D e5qw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence; bh=GUBKGHQksFVMti/JUe1/BJ0a1FzKN9fSs3uKM7tNhAo=; fh=O28rQZH04Q76OnI22sKku+6CHCAGa50ys54KcCWQoXQ=; b=mkVlF4GWdZOUNYdpWpXqwEXEvGGEd+4glJGpQomBQlmj00sdjGxTIkX/6PzNdyEtMF Vn+el0927AhjnYZJdgAOHmeZKQjJ0x17bcW0SPBBvq/UWU7DoEDWEaBPZBhdqY50hN+N 9jmyy1/JB0OAqbKp9iKoSL4DragM3F7t8rp3UXp07U1NrfNLHW8uJHPjo5lgIuQGiPjY EY6czZCRJJ4hDui+p94O0WuS1VNavMumqLSmxX92FesB4bN7G/93uud3Yu7hEvrpa+/S YNMLKMfEAdGjnANlMLY+Oq8Ma2HqCEym+j0rWCBeglbYV48XC1Yl0YZ1F+BEv9UtQ/ov Y6Hg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-20912-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-20912-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.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 i3-20020a05620a248300b00783077c9af8si2194963qkn.700.2024.01.09.05.43.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jan 2024 05:43:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-20912-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; spf=pass (google.com: domain of linux-kernel+bounces-20912-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-20912-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.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 7A6231C23F09 for ; Tue, 9 Jan 2024 13:43:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E5F1738FAE; Tue, 9 Jan 2024 13:43:07 +0000 (UTC) Received: from mail-oo1-f48.google.com (mail-oo1-f48.google.com [209.85.161.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 3474E39AC1; Tue, 9 Jan 2024 13:43:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-oo1-f48.google.com with SMTP id 006d021491bc7-59882f48b50so40033eaf.0; Tue, 09 Jan 2024 05:43:05 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704807785; x=1705412585; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=GUBKGHQksFVMti/JUe1/BJ0a1FzKN9fSs3uKM7tNhAo=; b=VpD9jWWFy1R+UBGaXFbUyT+MXZn+9Fc3RaD7AQpxKkYDu5IAednqBR1f/hxQPoeBhD HmswkzoOYYulVLVTaPDnpmwoXnssU5NK0Q6g5WOSzl3MPSLe15J58D5JSHn1faHy8WM2 UgqM3YMi5ojwcYd1n6a3HXTP5krp96ddfk82O322lZ7u1bnaSf8oOjVEcNm1N/OGZWnH 9NKB8PX/gf7AXtLhXsUajSL1mcthrMg6NfTZAkKf9gSVPC6og+gfIO1LNC71lcjIUnhc G3KHCTwTLFtDzz0t43+8Qw9Zt57NvhjlsDRZjmLPWAQBOA7CJnvKRMIDFnZ5ejTmLQAn DYUA== X-Gm-Message-State: AOJu0YyoSgoSMWmoLlUsGr016Q+JgSoQH+Li/r2GY+JFScyCxUQCB+ba qKmDw1plMjW2gM0058MvRI55Dm8OSkmQaajmvgA= X-Received: by 2002:a05:6870:418e:b0:205:f07d:344a with SMTP id y14-20020a056870418e00b00205f07d344amr9580257oac.5.1704807784366; Tue, 09 Jan 2024 05:43:04 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240106191502.29126-1-quic_manafm@quicinc.com> In-Reply-To: <20240106191502.29126-1-quic_manafm@quicinc.com> From: "Rafael J. Wysocki" Date: Tue, 9 Jan 2024 14:42:52 +0100 Message-ID: Subject: Re: [PATCH] thermal/sysfs: Always enable hysteresis write support To: Manaf Meethalavalappu Pallikunhi Cc: "Rafael J . Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sat, Jan 6, 2024 at 8:16=E2=80=AFPM Manaf Meethalavalappu Pallikunhi wrote: > > The commit 2e38a2a981b2("thermal/core: Add a generic > thermal_zone_set_trip() function") adds the support to update > trip hysteresis even if set_trip_hyst() operation is not defined. > But during hysteresis attribute creation, if this operation is > defined then only it enables hysteresis write access. It leads > to a case where hysteresis sysfs will be read only for a thermal > zone when its set_trip_hyst() operation is not defined. Which is by design. For some thermal zone types (eg. acpi), updating trip hysteresis via sysfs might lead to incorrect behavior.