Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp543931rdb; Mon, 29 Jan 2024 09:54:54 -0800 (PST) X-Google-Smtp-Source: AGHT+IGRK+L93n94vxYCOFvp+HsNQar4RT9s5UcNDgvgE3son41jJNtTnWO++XEohq9U17y5nJGa X-Received: by 2002:a05:651c:104f:b0:2d0:480b:8d9a with SMTP id x15-20020a05651c104f00b002d0480b8d9amr2748114ljm.12.1706550894281; Mon, 29 Jan 2024 09:54:54 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706550894; cv=pass; d=google.com; s=arc-20160816; b=Jrb1jFcWNRrHtZ9+MyCI/6/vibnhlrs/gL1CHyljn8E4Vo9d0mMk6bUlMeSLSIj9ON ja/O8sWa4TMaqPVMB2SmGfkkMJCwF8BFa8fVAr9n6y/zy3BMGOT8UKcE5OMvuwvbCBXK YgQ1s+TRJUhAY4vsVdRVwhGW3o+/9LTeJaoplvJkFwuqG/oXQ6azhEnzwhIvoUheSipJ K+83XluqvLDwuWKBDukAv1a/s7XFpPuXhad7IDAY0Ai92aGGuIseA5OYFOCdYo61Zo7P 5EWzcEh5UGV9X3hfMA6BXF6eyjhw5UnumjdVjsc8epQ4ac6aiWO8QQ8muu8Y2IQm5lGQ CYLA== 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:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=bVR5nbml2aTFOfaqC+3gdwm2ez6gyOkqhxn8ov2iG9U=; fh=YakdYG8IIyz09FHM1PKWaXbI2jCsSkHdchiSaV/lQX0=; b=xXrwBcfqzoms04tPVnBEXnGIupJyw7MADt8KO+EXU3GEKEWl44ZRC+vilTyMtEX6jI Vn/On6wDQXNV9jLvESGuqsDXDVFHKEO+unlcOmNZZOJ0GG8SfnB55/BLEVE+EkY8qwgz iV9bS5YeGLHzwD3usHMPqHaGxR7wvrJ9p/CG4lDG5KaAbpbObL63X0MZKg1ZzZPe7EZH 6r03++KXv+vPPlAkoxxJA3czzz3dcQoF6ZFF6voi2+02qzTeiRfsxlxRHm0BfUh7RKCR K3Lbx1ybD8hq0TD0mDNUTX6GB9wcCPeU6MKkA69gDHk6slUuPXuZlGqbnyne8T+3UfvX SLHg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=s1oUzxO5; 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-43240-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-43240-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id d19-20020a056402401300b0055ec0611324si2407072eda.108.2024.01.29.09.54.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jan 2024 09:54:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-43240-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=s1oUzxO5; 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-43240-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-43240-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 09CA31F25A03 for ; Mon, 29 Jan 2024 17:54:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6AA8F3F9CD; Mon, 29 Jan 2024 17:54:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="s1oUzxO5" Received: from mail-wm1-f45.google.com (mail-wm1-f45.google.com [209.85.128.45]) (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 DC16E3F9CB for ; Mon, 29 Jan 2024 17:54:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706550885; cv=none; b=pBYypBJDv3ZqUmiG54v5xf0hM09mJv8jNU7qyKwyr/B3061HEq3fv3Z77/sRi04n9zhJddDUFkagsw1FTqFpmFrCtVxJXNhwQUZONBEzR4KRyesgGqqKYHZ26LrDMSBOBzbzrsu0ZEhxeARqVv43wzYsuz6jiQEUbtCVEc8zcV0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706550885; c=relaxed/simple; bh=sAiDrWDvVVNWIyyIYoWKyxgVvvGZG7qFK/Y4jjOK1X4=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=ok7vXBp1reAJrgISH3YOlQ49GC78qbLroBfHSPFTgnfpEwyCemHDrvGP5Wm0RqzKeqBo/7DbbDpttNJNYzre0wg4fJf8j3EFAC+vPOOW9Jn/rcTjN0pay6okAsoGly3wmiXlzcAgR6V2O5TC7p2ufvqUjuZA5ODBfR0UtA5ZdfE= 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=s1oUzxO5; arc=none smtp.client-ip=209.85.128.45 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-wm1-f45.google.com with SMTP id 5b1f17b1804b1-40e76109cdeso40649525e9.0 for ; Mon, 29 Jan 2024 09:54:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706550882; x=1707155682; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=bVR5nbml2aTFOfaqC+3gdwm2ez6gyOkqhxn8ov2iG9U=; b=s1oUzxO5TcDKxerv50P2Eu+maFVK90LzeNaoEKygLuTcqRWHzVgIKA+6EbaCSHDlts v3oUIxwq5Cq3OIqW6N1R5Ji9yPhsMkdISfY9JvfK/hRYYprgjCUaUOoffyJrweiDNAbp C8Yut6D3YV5tuylenpmKonVs1G0E1efBrEnh2A4MtimiblSkfVN//embb3TCplmhQOXH nBcCKx9G/WsrWaMa0BIVTtgSBhAytMeGAwwvb+ziXOBL8Km87vkrycMF+4HKnxmktfMg 2brdOf7WZ1PQihSFjxBiKUh/uWdQrcwOSs1pebA1T38tCJFHggAAo3foGy36DeE6+R+k 8TZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706550882; x=1707155682; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=bVR5nbml2aTFOfaqC+3gdwm2ez6gyOkqhxn8ov2iG9U=; b=UaCnxNS5cGRx+iexmbrQbZ6Ea6BtFHAz4S9Sx5iyEDD13ha69/C7QKfex9rvnLnOkk BClaUiI2qzIMKQmF/G86U8WQl2y1orxqE5Wo/1b3/jvLW/qrc0FEEioVxGxvGyz9B89s Y6Nqeyt4QAwgK6b8ornXxjEkcAxLrQWWyLYcptave1QZVs69qQUR0M34AO2860z+xMzT lhCQyCnw1zxrFbSYyhDoul5Pov1lcn0dUB8S4KQetcGW8A71AMTCTKjlZ4gF9jcI22rg TrvjSHwzcIeyuINWFwnPDdIzJeUGU6Qr4fHVnbuK4FHG7aU0p5S3UVHqtEPbpzKzt95S bQ7w== X-Gm-Message-State: AOJu0YzaVH6FVCe6bZ0v8+aAJiMfSVkm957AiVbn9hnMHRPwsfNpIxjk OkoXxzNRmLSRI6ZrHRD0LPFZdI3r0O+TS1f2l9M3oec8GnCpYpuDYJzZ9xxMA8c= X-Received: by 2002:adf:ea4b:0:b0:33a:f024:271f with SMTP id j11-20020adfea4b000000b0033af024271fmr2073808wrn.68.1706550882039; Mon, 29 Jan 2024 09:54:42 -0800 (PST) Received: from [192.168.10.46] (146725694.box.freepro.com. [130.180.211.218]) by smtp.googlemail.com with ESMTPSA id az27-20020adfe19b000000b0033af4fbce50sm1306081wrb.3.2024.01.29.09.54.41 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 29 Jan 2024 09:54:41 -0800 (PST) Message-ID: Date: Mon, 29 Jan 2024 18:54:40 +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] thermal/sysfs: Always enable hysteresis write support To: "Rafael J. Wysocki" , Manaf Meethalavalappu Pallikunhi Cc: Zhang Rui , Lukasz Luba , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240106191502.29126-1-quic_manafm@quicinc.com> <921c2f90-fb8b-4e70-9e3d-6e185fec03b6@linaro.org> <41b284d7-e31f-48b5-8b21-0dca3e23cb1c@linaro.org> Content-Language: en-US From: Daniel Lezcano In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Hi Rafael, On 29/01/2024 18:07, Rafael J. Wysocki wrote: [ ... ] >> Index: linux-pm/drivers/thermal/thermal_sysfs.c >> =================================================================== >> --- linux-pm.orig/drivers/thermal/thermal_sysfs.c >> +++ linux-pm/drivers/thermal/thermal_sysfs.c >> @@ -474,7 +474,8 @@ static int create_trip_attrs(struct ther >> tz->trip_hyst_attrs[indx].name; >> tz->trip_hyst_attrs[indx].attr.attr.mode = S_IRUGO; >> tz->trip_hyst_attrs[indx].attr.show = trip_point_hyst_show; >> - if (tz->ops->set_trip_hyst) { >> + if (IS_ENABLED(CONFIG_THERMAL_WRITABLE_TRIPS) && >> + mask & (1 << indx)) { >> tz->trip_hyst_attrs[indx].attr.attr.mode |= S_IWUSR; >> tz->trip_hyst_attrs[indx].attr.store = >> trip_point_hyst_store; > > So it looks like I need to submit this, even though I'm not sure if > anyone cares. > > In any case, I care about consistency. Yeah, sorry for the delay. I'll have a look at it tomorrow -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog