Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp2017414rdb; Thu, 21 Sep 2023 06:30:38 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEnpuvGiR84Tjdc7KuSRrygtSdwsIGwqJUEdNfHsAzLeE01g6GKRznSBVtV235QROSxqal+ X-Received: by 2002:a05:6a20:4295:b0:147:fd40:2482 with SMTP id o21-20020a056a20429500b00147fd402482mr6267178pzj.44.1695303038516; Thu, 21 Sep 2023 06:30:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695303038; cv=none; d=google.com; s=arc-20160816; b=u1gX/690+KMxuqJVeRncMgDiyABil9OIDxE2QkaPurLMsyBhmPMCSGH/AFCnKo0nd+ RfSA+ZeOJP/P03q9wEQmkreDNLhslKmLrxj1bI/OnssTPCNokRTnmrIK6xb5L0pE+Iw8 gidoGwen16uaQ0THrA2ydP3rlDkcLW/3ZsZ29nE1DEulT0I2RJ3sPLYS7NphfLCw5rUf 783z1QYAehdqykU2YsWhwWj0eWUFY2ZEOg8CAs/5/K9PSxfLoMMuKKrq6HcWJPSDTrRF VlFYbfvgBfNurxjU5ViIn1twCaH2GxG+oJxZuQH49sXzJj4/ZVmHrGgU0QBbS7YnSCW+ FCwQ== 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=MHBrblzB+i2M2dKo5AOf+BBmdJCshrIq3n7KCqpT3BQ=; fh=ZtLqiW1CsNsa7zLJqIWQfZhfI+Ie+alnb1/s4W2uRjA=; b=yx84WpOwSns00TWw+ut7uXTGSpvov5DFhlsA0uljwozDuquExejZLpwuUtIP7+5k25 uYZXNU3J6+fQ15144hADsknmlS/qbkzw20YKJmIgLzXuxVqePWx6S959gUnQMKVtAiDm s1AXqqCIYu5u5ENvVJtr3ZIDIf5v293lMlknxHi1cnaa81khTFetcdRBxTA40290T3ON DW7w6x+ayXZtVvk0wDsRAQ+K1VhcKwDialRRO1HeI537EqO9gf1pzc0pFSEgehU+gnEE zw9SOvvWQvwiACrDr4y/TJvtSk0aOQGkic/Yuo9r08mBB5pQuGMeQNFEHb3qQFT0Ienq yVFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=M8a43qN5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id x23-20020a631717000000b005440b9f013csi1393627pgl.899.2023.09.21.06.30.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Sep 2023 06:30:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=M8a43qN5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id BE1418316EDC; Wed, 20 Sep 2023 06:20:25 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234531AbjITNUX (ORCPT + 99 others); Wed, 20 Sep 2023 09:20:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40106 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234548AbjITNUW (ORCPT ); Wed, 20 Sep 2023 09:20:22 -0400 Received: from mail-ed1-x529.google.com (mail-ed1-x529.google.com [IPv6:2a00:1450:4864:20::529]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DE6D3AB for ; Wed, 20 Sep 2023 06:20:15 -0700 (PDT) Received: by mail-ed1-x529.google.com with SMTP id 4fb4d7f45d1cf-52c4d3ff424so8580239a12.0 for ; Wed, 20 Sep 2023 06:20:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1695216014; x=1695820814; 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=MHBrblzB+i2M2dKo5AOf+BBmdJCshrIq3n7KCqpT3BQ=; b=M8a43qN5jDbNngZdYGqD5Y4AFYAsucSHvsPebKHJmNFYqlVHkjWovNfBeqWmi44Blt Rkcm4TIvIBlTKF2csPvmBxehipb1j69wJKyPbYVIjzpjntTIhQK8wlYZgN0O+JltanHD /zWg8T0pgUcF1tmslw26TOY05YFNEkN0kEsTrnL9E28mCJz0nNMOEdW7l+R6g7ba2h8C Ow6EO5olhz+3yR6ZRAkfLUQxIhYyOrx5KNwrZRfCM6SnEMRc2IInVvn8+NqP5BPz7P06 5NC6xhra24zRtSOIPfiH95/rrc1k/Yo5gqTB0gG31Y8LYQOsKCpj70jyJuxOY229Hwov yZWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695216014; x=1695820814; 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=MHBrblzB+i2M2dKo5AOf+BBmdJCshrIq3n7KCqpT3BQ=; b=B5uKFBWoinzpdNixGvm1yQuuxNf6c9x2wa1gIYPwphQ8QGxtSzKYGsGAazPAtmYEd9 r3HMKDOIrw/F2gi5dIYotZhMg5fRuX/ZESkK5HdF0sNZi2hyr4BPd4F+N2Yojhswjqe0 czjpivBctL5fgMyTsKq3H7ZDfp/ITL7dGfhzKTj5FzgmIr5/ivarmsRrmk9PWaWNiRIe oC8pEcaOzvtH2ByeZrMva3CYltV5F4x4vLRg30XD3AJ97Q+NuybtYNRGsMBt3JYgtrDH /DVKChjaKDe+L/Ka1uE6wlsyOZ7oKdPaR49nYDjPppW0D9l7vLvRt1lglGarYxKN2f3l uyOQ== X-Gm-Message-State: AOJu0Yxy/+sd6iyRFQraQoH1fj2je/QsnQwHX6uFJnY72hg7f4+/K5gH Upa0RKnjH9fUIpOmWo8fbejB1A== X-Received: by 2002:a05:6402:297:b0:52a:250e:a052 with SMTP id l23-20020a056402029700b0052a250ea052mr2138008edv.7.1695216014259; Wed, 20 Sep 2023 06:20:14 -0700 (PDT) Received: from [172.20.122.226] (static-212-193-78-212.thenetworkfactory.nl. [212.78.193.212]) by smtp.googlemail.com with ESMTPSA id n16-20020a05640206d000b0052f3051f7d2sm8927336edy.80.2023.09.20.06.20.13 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 20 Sep 2023 06:20:13 -0700 (PDT) Message-ID: <289d5ed9-8879-91b5-d5fe-948ff2dd61d2@linaro.org> Date: Wed, 20 Sep 2023 15:20:13 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH v1] thermal: core: Drop trips_disabled bitmask Content-Language: en-US To: "Rafael J. Wysocki" , Linux PM Cc: LKML , Srinivas Pandruvada , Zhang Rui , Ido Schimmel References: <12296181.O9o76ZdvQC@kreacher> From: Daniel Lezcano In-Reply-To: <12296181.O9o76ZdvQC@kreacher> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,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 groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Wed, 20 Sep 2023 06:20:25 -0700 (PDT) On 19/09/2023 20:54, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > After recent changes, thermal_zone_get_trip() cannot fail, as invoked > from thermal_zone_device_register_with_trips(), so the only role of > the trips_disabled bitmask is struct thermal_zone_device is to make > handle_thermal_trip() skip trip points whose temperature was initially > zero. However, since the unit of temperature in the thermal core is > millicelsius, zero may very well be a valid temperature value at least > in some usage scenarios and the trip temperature may as well change > later. Thus there is no reason to permanently disable trip points > with initial temperature equal to zero. > > Accordingly, drop the trips_disabled bitmask along with the code > related to it. > > Signed-off-by: Rafael J. Wysocki The logical change after changing how the trip point are handled ;) Acked-by: Daniel Lezcano -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog