Received: by 2002:ab2:2441:0:b0:1f3:1f8c:d0c6 with SMTP id k1csp217381lqe; Thu, 4 Apr 2024 04:57:27 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX9l0prxY9mQpWEtHEosboZ67cX8jfh6rakxwiz4NDS3loVSqwVkxFc08ZYlyH+RnQyCAOmIB3EFVRw08bjHKQbs1URrRKNescM79bOUg== X-Google-Smtp-Source: AGHT+IEq/NlaVkaxVGMaUwunREPjqMPznMaqUVBiSqNDeqP/UW9A7VHnduvoV7oCI5y6e090KTUA X-Received: by 2002:a05:6358:3124:b0:17e:b867:cb94 with SMTP id c36-20020a056358312400b0017eb867cb94mr2127299rwe.17.1712231847506; Thu, 04 Apr 2024 04:57:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712231847; cv=pass; d=google.com; s=arc-20160816; b=r2pFUeTwpItDC0aW0m5hkuAP05e0npmcpoWhUH41/6BXemDoGoePDNwOX1zK5VoRCF tEIkp7hhMoTNr4s4TTJBjAJpmiYjmHhy+qio9ye6cAxSDCFDMozNf564XVYFL+jDKm+p 5G7LckCKx6wLxibmPXa6Q8r1stmx/1JkGPhaan1+FBXJKmKcZGQAAROGxqEI9H/wd/pj YzdwByBwYO0PH+Cib8VQ1jlR6DjGnfXmEI+jfNqGmQF8EH7btzIe1C4h9KUnPl6mrU/y uoUrt+zfZMNxnlptUTP2keQKKFeXD5/hSTnDC2f6maF4fWrn8oG/PjXCQmMun+6Rz4PA M71w== ARC-Message-Signature: i=2; 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:dkim-signature; bh=kn6YOIWVQu3GjS6d1VQObCOTer2Btuwu9A6Xkucj8KM=; fh=rmKyU8NKU2u+B/e6A1zbVdZYCDOBmxceF2PZMXGHyVk=; b=TwdXyFUC3Ni4WNRtmxDfdW5O7pxoWmmp1mWVNq3XAQL3qdgQoNo51VbTXjbIUb9JRY DIx/0kN+LPRAHVVDAq1dKu9w40HylJ59asWJv8WfTzy63p+0ohFvmVaBeHA75rDipwkh ZCk0CIMOWIh7tNzg+1aziDjkEkkibI0gfbj/MbG55zPCuD8WLb4Lifu0YYohvd6J1ilv AhWkkM/mMeCJ5A/PD/XP1lpuhib7p0sbMj0Q41V/zNoffRnDRlFbAdm/nOXz6tatO6tX vkWOtUjistAa7PqpvEoGjRyS+Xt2qVz2WmDIKV5Ownqvf/m8rig/pvIcIUwR04xbLruc FTVw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DxFiXLzR; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-131347-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-131347-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id n2-20020a637202000000b005e4e759dd6fsi14719664pgc.433.2024.04.04.04.57.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Apr 2024 04:57:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-131347-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DxFiXLzR; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-131347-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-131347-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 29C3F287BD8 for ; Thu, 4 Apr 2024 11:57:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 913EB84D2D; Thu, 4 Apr 2024 11:57:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="DxFiXLzR" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B5E7884FAA; Thu, 4 Apr 2024 11:57:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712231840; cv=none; b=jWaN/gcrpVXtp7+WNl/+vtdLLzIucmRUciUUH1mb+SCyEDEFisutOSC8UYPilA/CaQJfHobgrH1h15PvFiu2NzjhLHLXuRRHKnsuj1uLSfANod+toArpzaUFT1MJlqvspuqV4bmpUtnjCrU6LqZJ6qxaoOC1PdbGYVvj5O+/sbo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712231840; c=relaxed/simple; bh=Dl0DCFFeaG32auCuag3L3uwTOmeWVL3ayWOMwWYAh8g=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=jBDrvIQe2A14wZTdtrzF+MpIk2MVnj5wBUpHsFAqMKPrv78xj0SzGI2zfz9JQ231y5PFiApVtl97OKOBJG9VxdqwvG2RzQNtI2hYpM1l12pZ+Av0J/hSBVE0uLFM7tSe7Nmyh5ZuFDZQpp2p6LKEDM0xto6zhP1LouQvX7vsWtw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=DxFiXLzR; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id EDC7EC43394; Thu, 4 Apr 2024 11:57:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712231840; bh=Dl0DCFFeaG32auCuag3L3uwTOmeWVL3ayWOMwWYAh8g=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=DxFiXLzRpeXrD5jM6XlZnyh/7G/4TMqh8nzd6j0aWfeiqUMSOVHDcGMjfZtzEY9H8 gZmL+yfbuZAjZK/p4djk6G7SQdsogQjWVctEZxj0Ga3fP1avhxysVjYOMJ7O/w51TO duDMI0BuK0ObfXLRc1zwWEm2b+tigCRyrBiTCdWNo2l+RZr1OtlS54cwrmM4LpYoO4 e8TUhzGCDn+4uEkHGDzOkA5oO2gsGu7BxUhBr5Y/TQcVN9lEN+ru4m7sKtSGOK5D9C ezPeMNLHCb0Y5cm219SgI0nlyo+DNaKHSJRMhjWf5fXiNIyfHjLhp3+zdEHZn6z/wm wu3tLft3tETKw== Received: by mail-oo1-f52.google.com with SMTP id 006d021491bc7-5a4e0859b65so268083eaf.0; Thu, 04 Apr 2024 04:57:19 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCWWp1kRPb0kgvD84UIrkDcC0jpi+SG+RbWiQ3F3YPErpsj5aLHmOOqSJClMooX6nEeIEWI24GuHBK1Uy8dqdZ9SGcs7FrXikENfX0Ez98v52eQpyj6u0n1szU/rK9vCMPykzPUMUUU= X-Gm-Message-State: AOJu0Yz6kgoc5Cv2fXFyl4iB43QQdpEh8qbZhp+jzkFxXXAzVO/iPT9Z MAqwMYOkibFAa73wkm6mz92kndk9/oDaDmPj4asvv+J3etZhJAdX1fVlbjmfbXkrp9ldyL7r3Bc tYyw4vU4XzwA4mk1ps8sKzcoCyCY= X-Received: by 2002:a4a:dbc7:0:b0:5a4:5630:93d6 with SMTP id t7-20020a4adbc7000000b005a4563093d6mr2273294oou.1.1712231839209; Thu, 04 Apr 2024 04:57:19 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <5766468.DvuYhMxLoT@kreacher> <2318465.ElGaqSPkdT@kreacher> <6f950b18-4ff7-4570-957d-49b46167c12e@arm.com> In-Reply-To: <6f950b18-4ff7-4570-957d-49b46167c12e@arm.com> From: "Rafael J. Wysocki" Date: Thu, 4 Apr 2024 13:57:07 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v1 2/2] thermal: gov_step_wise: Simplify checks related to passive trips To: Lukasz Luba Cc: "Rafael J. Wysocki" , LKML , Daniel Lezcano , Linux PM Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Apr 4, 2024 at 1:26=E2=80=AFPM Lukasz Luba wr= ote: > > > > On 4/3/24 19:12, Rafael J. Wysocki wrote: > > From: Rafael J. Wysocki > > > > Make it more clear from the code flow that the passive polling status > > updates only take place for passive trip points. > > > > No intentional functional impact. > > > > Signed-off-by: Rafael J. Wysocki > > --- > > drivers/thermal/gov_step_wise.c | 14 ++++++-------- > > 1 file changed, 6 insertions(+), 8 deletions(-) > > > > Index: linux-pm/drivers/thermal/gov_step_wise.c > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > --- linux-pm.orig/drivers/thermal/gov_step_wise.c > > +++ linux-pm/drivers/thermal/gov_step_wise.c > > @@ -92,15 +92,13 @@ static void thermal_zone_trip_update(str > > if (instance->initialized && old_target =3D=3D instance->= target) > > continue; > > > > - if (old_target =3D=3D THERMAL_NO_TARGET && > > - instance->target !=3D THERMAL_NO_TARGET) { > > - /* Activate a passive thermal instance */ > > - if (trip->type =3D=3D THERMAL_TRIP_PASSIVE) > > + if (trip->type =3D=3D THERMAL_TRIP_PASSIVE) { > > + /* If needed, update the status of passive pollin= g. */ > > + if (old_target =3D=3D THERMAL_NO_TARGET && > > + instance->target !=3D THERMAL_NO_TARGET) > > tz->passive++; > > - } else if (old_target !=3D THERMAL_NO_TARGET && > > - instance->target =3D=3D THERMAL_NO_TARGET) { > > - /* Deactivate a passive thermal instance */ > > - if (trip->type =3D=3D THERMAL_TRIP_PASSIVE) > > + else if (old_target !=3D THERMAL_NO_TARGET && > > + instance->target =3D=3D THERMAL_NO_TARGE= T) > > tz->passive--; > > } > > > > > > > > > > The patch looks good, although I got some warning while applying with > my b4 tool: > BADSIG: DKIM/rjwysocki.net It's likely because it was sent from an address in the rjwysocki.net domain, but it is perfectly fine to send "somebody else's" patches if a replacement From: header is given. Looks like a b4 issue to me. > Anyway, it looks like false warning IMO. > > Reviewed-by: Lukasz Luba Thank you!