Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp2930243rwb; Mon, 7 Aug 2023 05:57:36 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHwMAU63zkWYe9KVVamRuGkGptMexv/vDdH6lTzlwW9zzjy7W42a6zW219Tm7IERJoBg7F+ X-Received: by 2002:a17:907:78d9:b0:993:f9b2:93c1 with SMTP id kv25-20020a17090778d900b00993f9b293c1mr7655717ejc.9.1691413055818; Mon, 07 Aug 2023 05:57:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691413055; cv=none; d=google.com; s=arc-20160816; b=fD4TrocHuLodLHfH71xUj/+wrguifj47w0TcFx9lWO0uEAdvU2ds3fbDsgJG6RbyKf syuD1tRH1XUzIKtK+MxEC1Zw8+D1yJRmMEcqWC2iumCrW/ZTw5mcA5E424ljcmivPE8L BEnLEZ/yjaht5ogXBnVUBGJ/HGF5DlUmolwMSZ2Qcz7pjRzFRNo+CWINeH8voyVLXE/n EX9J4wNqvOXh4rLT90gJ7ChFdM9O8Vs1n04WmvCrvBADKXyhLsE/7v4TvmQZmkd/8ck2 534rZxluaF6G5sVC3VZgXBaXpXSnBlJj7fQElkvMGY1rvQwPAumX4k29mkBVu5Q21C+P uqsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=JmKgbF75SppH/Nt4NtFgEsnrqh7a9v81WiBucQ7ae8E=; fh=pEzMByEnePV36x3XCCNauQuREaASp/TIcmpU1ppDINA=; b=0fjgXU/drw++IAXwXN5ecD9b8N3atxUBql3GWQq69L7NyNu5b2qKWkoIw3t1SFBNxP mZJUTfS3nrPfcj468R3ezb2xHpp/8FGowaI0WrbxBTMVXV3PdJG2OFPDpbn9rEpIPv1v s2o/MwjO/vbuw6OuJJIL+QaVch5i0JsxrilVg1lJfquH9ZOS8HzwG7lo6gjqYDkt62l+ nQ2RlSDMYOJ47zfkJZdNAA/9xWiS/l8d3PSdCc5YtWCJ+yzvUyn3Ax3Potu0wTieM0Tt V+HGPAb0IlFby6UhgY5BLecuFfJRANTt0+zfPPu6/n6qOeGslYTiwdGny3e4UANjOY6j 3FjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nIevyibA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hk12-20020a170906c9cc00b009929c39d5c5si5898393ejb.367.2023.08.07.05.57.10; Mon, 07 Aug 2023 05:57:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nIevyibA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233017AbjHGLe2 (ORCPT + 99 others); Mon, 7 Aug 2023 07:34:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40600 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233352AbjHGLdh (ORCPT ); Mon, 7 Aug 2023 07:33:37 -0400 Received: from mail-wr1-f54.google.com (mail-wr1-f54.google.com [209.85.221.54]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8975F525A for ; Mon, 7 Aug 2023 04:31:16 -0700 (PDT) Received: by mail-wr1-f54.google.com with SMTP id ffacd0b85a97d-3090d3e9c92so3851710f8f.2 for ; Mon, 07 Aug 2023 04:31:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691407509; x=1692012309; 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=JmKgbF75SppH/Nt4NtFgEsnrqh7a9v81WiBucQ7ae8E=; b=nIevyibAozWaGB4C9czRN/LjurbUuQPVCZe6w4q4oGjfzg+0qceylElM66uk+ewfIB NPxS8LlhxWDrxNYBnJBIqkVO5VT+RWvCCDxyHEu++QJon5tY7rlIsOTY2XbZ1MC9EP1u TN6ct1rkB0BNLgsLDAU9vAJsSqWu4oe61BFkg8L5vcKujARIC0/9mof0CS3nxdH6hZHF snnjikSPd6+PLmnYlxAgCSetXxCVm3aNiUNgdI45wB457QbbZ9Y4Y2b15IUIMmcuap1L Wr0ZNEtGL5k4OoAGbbJkEQjs3dMTvHwQq1fRa02Ss1tPzpwEW08CypdOz+92lbw+QLOF C/tg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691407509; x=1692012309; 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=JmKgbF75SppH/Nt4NtFgEsnrqh7a9v81WiBucQ7ae8E=; b=lkeactMVBgfVCFywNWiRPUPaSvSYF0vXpRUS3dsRNMukXybnYo3rwXIpMbvt08as1z O/5xtlq9Aj1r/rBQ8OH7OywJuvmARV2Wm2FUkIEdXB9q8I3qoHoV5Enxi9+c439Pi3Rq C/xiih4nlAKX53KMPxJjyCfhtduTKDr67C3W/GktVEhyk3lWM40HOgcKJshAuSvejJW9 qYuhtKxgd6dzorlJ+KhblwqyBzTkFvyn81An8P+gPjiR6ityIlDoqYTk8+wHi5HxgQsd eqwJntenDLjn4vwEuO+XuDwLkK1UWXxHnn39dH1zU9arK46VGfoAYbyLtcl95Iteh2h2 EofA== X-Gm-Message-State: AOJu0YzlbSt0EAI1gXYi2O9KDpb21IZ54K0ndZ085eBoeQfrhhy2Q5DC oIGnopBMcFPu29jv3V6iGy2pvQ== X-Received: by 2002:a5d:4e0f:0:b0:317:6513:da7e with SMTP id p15-20020a5d4e0f000000b003176513da7emr6712284wrt.36.1691407509399; Mon, 07 Aug 2023 04:25:09 -0700 (PDT) Received: from [192.168.10.46] (146725694.box.freepro.com. [130.180.211.218]) by smtp.googlemail.com with ESMTPSA id g11-20020adff3cb000000b00317731a6e07sm8695427wrp.62.2023.08.07.04.25.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 07 Aug 2023 04:25:08 -0700 (PDT) Message-ID: <570761cf-960b-0905-ad06-ec18bd75936d@linaro.org> Date: Mon, 7 Aug 2023 13:25:08 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH v4 01/10] thermal: core: Do not handle trip points with invalid temperature Content-Language: en-US To: "Rafael J. Wysocki" , Linux ACPI Cc: LKML , Linux PM , Michal Wilczynski , Zhang Rui , Srinivas Pandruvada References: <13318886.uLZWGnKmhe@kreacher> <4878513.31r3eYUQgx@kreacher> <4850902.GXAFRqVoOG@kreacher> From: Daniel Lezcano In-Reply-To: <4850902.GXAFRqVoOG@kreacher> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/08/2023 23:00, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Trip points with temperature set to THERMAL_TEMP_INVALID are as good as > disabled, so make handle_thermal_trip() ignore them. > > Signed-off-by: Rafael J. Wysocki Acked-by: Daniel Lezcano > --- > > v3 -> v4: No changes. > > v2 -> v3: No changes. > > v1 -> v2: No changes. > > --- > drivers/thermal/thermal_core.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > Index: linux-pm/drivers/thermal/thermal_core.c > =================================================================== > --- linux-pm.orig/drivers/thermal/thermal_core.c > +++ linux-pm/drivers/thermal/thermal_core.c > @@ -348,7 +348,8 @@ static void handle_thermal_trip(struct t > struct thermal_trip trip; > > /* Ignore disabled trip points */ > - if (test_bit(trip_id, &tz->trips_disabled)) > + if (test_bit(trip_id, &tz->trips_disabled) || > + trip.temperature == THERMAL_TEMP_INVALID) > return; > > __thermal_zone_get_trip(tz, trip_id, &trip); > > > -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog