Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7FEE5C64EC4 for ; Thu, 9 Mar 2023 01:11:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229966AbjCIBLi (ORCPT ); Wed, 8 Mar 2023 20:11:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47258 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229558AbjCIBLg (ORCPT ); Wed, 8 Mar 2023 20:11:36 -0500 Received: from mail-pf1-x434.google.com (mail-pf1-x434.google.com [IPv6:2607:f8b0:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 55A21CB06B; Wed, 8 Mar 2023 17:11:35 -0800 (PST) Received: by mail-pf1-x434.google.com with SMTP id y10so526073pfi.8; Wed, 08 Mar 2023 17:11:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678324295; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=7h0BP7xRpMiCpSEztDZ3QdlwVhz3jyLstzHsPlgVJDw=; b=NOqnwJENL1Q9PVZRY335mvButCucwaOiAbrXXU/4G4FTRPyagudVZybZ3Fzkl5+jTb KhmCff4VZhjDz/xK30mPZqkd9RFRr56gb/owUNTvYgTlX+mrHkKSbEoSnCzeN8c7nkyv nfMfltsuON5u0Rs9AFqzXBYHfOqbmUKCjxTQDM5nPNKbDVHSE4HPEo3BHojQl+9iY9Cx KGRAszLC4w9aVQzLR8py0w7rJ0akYNmjGng+0I+3JtP1IyIXSMRfkx/2R7ryswa8Tpz1 TaHI74cO7uobsyvlz14f9VIkOUg7Y6C2jSEoNywD8yUUZ/OBz4DcBxMuYTeWJVpgbfoI FXsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678324295; 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=7h0BP7xRpMiCpSEztDZ3QdlwVhz3jyLstzHsPlgVJDw=; b=g4AYSzZL8+7uODLTfehOGEGiu1cTfNVSTeQEtInTxwhkfatqhweaDzNoHmpN/VDv1T PBEKKblfCemAmIbtJw50uCi1uvkv8bmLcZ7NlqUkNmV62xsznFnBvBBjPAyVHSeKXl7q wug02ReFEwVQ5C8r0pp5emNZjr4pM0TPgBCI9cCrYattnCZXtm8ZCkejdL1+xEY6skDu IiWcB6dETjYYt+laohhbouMP9pnUYPzssMwQoR7vP/0ZnGv0jSZio9MB0ltnZ9QwyeB5 d2OoEoTxxEWIGVqm0/snf3ZJprU1c8rWVZHtpJqdNQmKTaOMmHaR4du8hzQLZVtijr56 9w/Q== X-Gm-Message-State: AO0yUKXLKz38JDjvQwy8p1mwxDcnzY9uE4QlG8KIKDXU9IUJMPK8uiia j6hv0xHdCj7mTeriwMJmGOM5e6CAiubTJfr/wgs= X-Google-Smtp-Source: AK7set8G04eAaKT8IT1CwFNzw4sP6YNYzd5eCbQqOutz3SXq0kB0WR8GgDsy9HZpPV+RT2tSY0ISSjlZ8iXC7ruzzow= X-Received: by 2002:a63:5904:0:b0:503:a26a:2e7a with SMTP id n4-20020a635904000000b00503a26a2e7amr6959585pgb.6.1678324294761; Wed, 08 Mar 2023 17:11:34 -0800 (PST) MIME-Version: 1.0 References: <20230308214822.1317086-1-daniel.lezcano@linaro.org> <20230308214822.1317086-2-daniel.lezcano@linaro.org> In-Reply-To: <20230308214822.1317086-2-daniel.lezcano@linaro.org> From: Fabio Estevam Date: Wed, 8 Mar 2023 22:11:23 -0300 Message-ID: Subject: Re: [PATCH 2/2] thermal/drivers/imx: Use the thermal framework for the trip point To: Daniel Lezcano Cc: rafael@kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Amit Kucheria , Zhang Rui , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , NXP Linux Team , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Daniel, On Wed, Mar 8, 2023 at 6:48=E2=80=AFPM Daniel Lezcano wrote: > /* do not allow changing critical threshold */ > - if (trip =3D=3D IMX_TRIP_CRITICAL) > + if (trip.type =3D=3D THERMAL_TRIP_CRITICAL) > return -EPERM; > - > + Unrelated change?