Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1194369rwd; Wed, 7 Jun 2023 12:27:33 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6gnEA4TbzIM8qzacToQY9bUuBV/YxcSAaWgla/z0GvBpuNerefOxfgX07PChi5L2brqhu5 X-Received: by 2002:a05:6a21:9982:b0:10b:bf2d:71bb with SMTP id ve2-20020a056a21998200b0010bbf2d71bbmr4656130pzb.27.1686166053105; Wed, 07 Jun 2023 12:27:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686166053; cv=none; d=google.com; s=arc-20160816; b=WR8BISzpbbA6Lkh/L071OOYN6MUkCd4Syo2DSTv09gjfWYEpICq4paWy11GfI7J5AA q2Qj6ZP7luYgYSQH1d1RlfIoMn6zkoyoJDSgMMj6SYuCFd/5A0YfRylbx2yHAeQAJxTk G+BixscL+wYiQOcL156lAXW2F+vs7EC6qVJsdQDiP7KXFmW0u6rNoiYfgN7Pyf53Qncu CYbXOGrTXvBk84UgCpjzwbou3tZIYOKbCp2LwGSeHso9iMg3VP5E34CcZ2ebtQ7Z+UWv 4Tn0QYpj4omPuKPw7uqUfvdUtE24rfteDdIiAv7z/4uyzNlOk41810V+4IrtAbpYv39o HsrQ== 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=VFeShRA+Q6MS4Ek7wrmqu5wkSlrfRx+GR/9GaQRXmkc=; b=PSdTdvSNWuPHY8b7ir4ERPRIwf1QPRt0QNAhW/zbGsiS2QdZOsg5BG5Xq9JzU8tQaT GwpSF7gvxBb2Xy2U9C3cMKWjN3b5lMVCa1dicR5hykqGnFnFwRb+ymibc5hBvEMS5mCq jEzh8Xl6FgENUCyOUWFGMsiKVTnGBEfQNvMTDhve8/k8RZCQ65DX2fhPTmaTjxT0YdB+ QInzjwuEFGUDsU74/SdefZSQgkz4UgipGgWW1XikrnzmnZwC9wxu9zC5Ufp1dMBUvtsT 2fWvfSPWVh60G1P7sdKKXePl7APc2TNVBaQ76wIe8M1nWi+n/KFBkGTRoM7hBp+Qi4UC YsTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kdRjS7Qk; 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 c29-20020a63725d000000b005347520b1b7si9286305pgn.436.2023.06.07.12.27.21; Wed, 07 Jun 2023 12:27:33 -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=kdRjS7Qk; 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 S229913AbjFGTKY (ORCPT + 99 others); Wed, 7 Jun 2023 15:10:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40594 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229604AbjFGTKX (ORCPT ); Wed, 7 Jun 2023 15:10:23 -0400 Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E62FC1721 for ; Wed, 7 Jun 2023 12:10:21 -0700 (PDT) Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-3f6e1394060so64804275e9.3 for ; Wed, 07 Jun 2023 12:10:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1686165020; x=1688757020; 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=VFeShRA+Q6MS4Ek7wrmqu5wkSlrfRx+GR/9GaQRXmkc=; b=kdRjS7QkftlEs2gNCywQCzAIY2DE7VuHmhIS9URwDm20q6NGx+XDjhkb47Aeyp/qbB IdfdwT0mrfZhKGrS5MnbYShxFoL7wRG5D2cpKcCY/bleVHs/Kcip+Cnx/K4q/SyYgQZ/ B70ReBFlN4elHlR+m6eTqfKnjFRV9n8bBW/Ur0wLDBU4Kn4tCkDKdXF0nTbcKc56bAj2 shl4+DfFY8GuvCiapiwST0DPXcMtLYfw52dkTf4+pEEt7InleS7L2duPt7WfYNuK01UX 3l3ckyPy59gjkYXUz5X1fMRPC7WRTaVZjokbdeEL2/nlJI/GCba/bA+h9yXoRhqo/r+z 2r/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686165020; x=1688757020; 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=VFeShRA+Q6MS4Ek7wrmqu5wkSlrfRx+GR/9GaQRXmkc=; b=EkIXubi04tquGWTYyz9XBWbPUAY0l+/7GnHdKglVWf3f925f1We3sg7LOrWnX+WBCN jtBJKT5myC0dm9I9MpH00ka2A+JfHt3CdhXqE3KIQJbCE6NjQ58q1MUDnoREaoBERQKg kaYGNACIpw6jg4EAMi+ISNHXcgymUaIamg5qf1X90yRXUq8pIg1kcqHmwQePDiGF9ybd AnaLC3NGhCUfXugHKiLZkaLWMQRgAphZRvXkZZvBpnSX2FEEVWz3e3FAQ/TC/UpLFFVg SAKuFU1GcoeggJIb1+qDyXvszyhJrl4Gdtcxzb9rsl+tfe/poFhXGfmI5buYp+UikLXs GWKQ== X-Gm-Message-State: AC+VfDxI/6h7wDMQ8GkiUHmSJDGvH5YYBbED8hbSWAeDPht0iHhHKnAH Ki9ZdTIYLlLcDo1TwcRtEIeT8A== X-Received: by 2002:a05:600c:287:b0:3f6:f7c:b3fa with SMTP id 7-20020a05600c028700b003f60f7cb3famr5372333wmk.31.1686165020277; Wed, 07 Jun 2023 12:10:20 -0700 (PDT) Received: from ?IPV6:2a05:6e02:1041:c10:3a59:921c:4758:7db5? ([2a05:6e02:1041:c10:3a59:921c:4758:7db5]) by smtp.googlemail.com with ESMTPSA id n2-20020a05600c294200b003f7ba52eeccsm3039016wmd.7.2023.06.07.12.10.19 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 07 Jun 2023 12:10:19 -0700 (PDT) Message-ID: <507b5daa-73e7-8d21-4f73-c56f88c6bf77@linaro.org> Date: Wed, 7 Jun 2023 21:10:18 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: [PATCH 2/3] thermal: qoriq_thermal: only enable supported sensors Content-Language: en-US To: Sebastian Krzyszkowiak , Peng Fan , "Peng Fan (OSS)" , "rafael@kernel.org" , "shawnguo@kernel.org" , "s.hauer@pengutronix.de" Cc: "amitk@kernel.org" , "rui.zhang@intel.com" , "andrew.smirnov@gmail.com" , "linux-pm@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "kernel@pengutronix.de" , "festevam@gmail.com" , dl-linux-imx , "linux-arm-kernel@lists.infradead.org" , Alice Guo References: <20230516083746.63436-1-peng.fan@oss.nxp.com> <21914890.EfDdHjke4D@pliszka> <3120c2d5-4473-5b72-29bf-d841e806878f@linaro.org> <1966575.usQuhbGJ8B@pliszka> From: Daniel Lezcano In-Reply-To: <1966575.usQuhbGJ8B@pliszka> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham 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 07/06/2023 19:42, Sebastian Krzyszkowiak wrote: [ ... ] >> Hence, the thermal_zone_device_register_with_trips() is not called, the >> thermal zone is not created neither updated. > > Again - that's not the case the check is there for. It's there for zones that > do exist and that do get registered, because REGS_TMR only gets set *after* > all the zones are already registered (the driver as it is right now does not > know which sites it should enable before registering the zones). Because of > that, the first value a zone gets after being registered is always bogus, > because no monitoring site has been enabled yet at all. Ok, I misunderstood. I thought that was for failing registered thermal zone. Would enabling the site in ops->change_mode do the trick ? -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog