Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp2596639imi; Mon, 25 Jul 2022 03:03:30 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uKc6F+6Jy0TOn2CPuqiTsL1LD6sUStIkscZ1OiRNdEEzphA17Rov3Dzn9fF7UT3Dst1FV6 X-Received: by 2002:a17:907:2854:b0:72b:8f44:26a3 with SMTP id el20-20020a170907285400b0072b8f4426a3mr9275089ejc.96.1658743410171; Mon, 25 Jul 2022 03:03:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658743410; cv=none; d=google.com; s=arc-20160816; b=BUKWM70QMQhyOiLSJYqaYX3du6fz6py8EcdbgFHgK58HxiRNt5lCYxRtKpbKONCeLB 3TSwQWyUZ7R7h9TFy+n8+OzsbwEqS7ayM+iLvIBDkvYiqMFsxkCOD2OtmAIXGdBz1+BO 4QOvxpWCnIcvrwwGmMH0BHttBXZ0paS42I7/JdmbZ8dtMsKU7/3nlzdewYKQQ94vgyR7 48Q8Sz3ICfVnBd45aHUqpl60rwrk+24HyNc4QDJ/CDIplsvv3lVlnTexZ1A8+Mv5C5xO Xw55wb2MZ4+F49q3SZSERFSRlBkQSgW4/sjXIAaWeR/Jb1cOgyzmPhZ02C7p+s9dwbNf So2g== 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=8kKtLby8MgrUZLt3qipFc/90ZgJiiZA99iRAGb8boms=; b=pyR83EhjkX1ODgyWMLLgOHnIxoikMl0s/eKKC/81BrvKoPHzBGhSGHXr9CXt/zN3h+ wdezTLrQzDqaXKud1SlDVmAYqpIGNzCMlVY4YGXD5PESRB9J+q9Ky6OXexhytp5PLTpE iq7nrjAsGNVpWDhSP3DL31WRTD8siGmUqGCZdtqMzLcGKiu1ZzXuKDrxcYghZZEvjgXD /8Sqmre+/mVunJX5BCQK0VaIC6dcj2K1UV2gDU1Wij1WW00YOV4sIYFgPZKcflJChkpx v+T8yXIqlLZF4kY/hJhecIQ85vXwymSDXvDLg4M7DLbI2K/nKjIq0Z1dqwKmNuLwQB3N hjzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xCF6GRKm; 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 r10-20020a05640251ca00b0043ab49628b2si14490695edd.586.2022.07.25.03.03.03; Mon, 25 Jul 2022 03:03:30 -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=xCF6GRKm; 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 S232206AbiGYKAi (ORCPT + 99 others); Mon, 25 Jul 2022 06:00:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58106 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229633AbiGYKAf (ORCPT ); Mon, 25 Jul 2022 06:00:35 -0400 Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E98DC140B0 for ; Mon, 25 Jul 2022 03:00:33 -0700 (PDT) Received: by mail-wm1-x32d.google.com with SMTP id c187-20020a1c35c4000000b003a30d88fe8eso9017808wma.2 for ; Mon, 25 Jul 2022 03:00:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=8kKtLby8MgrUZLt3qipFc/90ZgJiiZA99iRAGb8boms=; b=xCF6GRKmnVCxMYRV/lmEMNlvm2J1s1DWYDqDFYGRm9e9cz9sNAY1IJh07ch4Q4zqbz 8d9GAzgrdlVt9UFU6nhVDvCmpx64V8MEFHp3Hb1vqt2BTpGimQXFYVRdfIl/39GRLaJZ Jt/bQllBSlji9wDxYXln4f8yD1ojVRDj6ud6Np7TNQKymRFsSKs7Icv3cZ9ZnJm/k5KU o5ytyhWKg1pGEPzci2qaOq36TdFRWDnN2PyKuEWF1jLZYs+hAFTfWjIXTumvKCIl3+1a 7TItGCaULZRrmoLrrw3BgQLily+WEJ+WT6Wd3+M/B8EFuoDp6BVdjC2hqgFSncNqRotz LlkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=8kKtLby8MgrUZLt3qipFc/90ZgJiiZA99iRAGb8boms=; b=vI8gQ7ksbokNeeWGaJ7WxzZ+/Fv1zo4JKCHZML4HF7ekzpNOGujPhxYObygKxwoovR 1FhRKGC6eBur2j/jS+HFpAJPyneNt3akmU/pU+wH5lmZWypSXaYVlBGns2G8DPWNH6Zq yutexd5MjWDisS6+De/UGYRYxpRqC2gYR88//aEmydXjQnBQrom5SaqPs9MhlpRMyZ9/ /NMeAi0OR9oMqKe2s6n4zkTI9NOSZGC0nLriSOT8H2Pp8RUPs9kN4Xdf1TU2wHOS2wGK YarM/XfrsPHfotOTIecfvySDdpmhqCwg4506YsgTtKVDUmF68bZ3aJdlcTTc7xtgNfJx y0Qw== X-Gm-Message-State: AJIora/eIbyouB9Nw+B4AR2uNx8UzkMSxuDyi7GxklsvW8+0e1P0MQL3 CKnXFNRfb8eLULZxWyo2gnfFwA== X-Received: by 2002:a05:600c:224c:b0:3a3:17b7:a229 with SMTP id a12-20020a05600c224c00b003a317b7a229mr20968303wmm.1.1658743232355; Mon, 25 Jul 2022 03:00:32 -0700 (PDT) Received: from ?IPV6:2a05:6e02:1041:c10:feb7:6a58:3e0f:a58f? ([2a05:6e02:1041:c10:feb7:6a58:3e0f:a58f]) by smtp.googlemail.com with ESMTPSA id n6-20020adfe346000000b0021d7ad6b9fdsm11490008wrj.57.2022.07.25.03.00.31 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 25 Jul 2022 03:00:31 -0700 (PDT) Message-ID: <28e915c2-4871-b648-f5ac-78d6ecb32768@linaro.org> Date: Mon, 25 Jul 2022 12:00:30 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: [PATCH v1 17/33] thermal/drivers/rcar: Switch to new of API Content-Language: en-US To: =?UTF-8?Q?Niklas_S=c3=b6derlund?= , Daniel Lezcano Cc: rafael@kernel.org, rui.zhang@intel.com, khilman@baylibre.com, abailon@baylibre.com, amitk@kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, "open list:RENESAS R-CAR THERMAL DRIVERS" References: <20220710212423.681301-1-daniel.lezcano@linexp.org> <20220710212423.681301-18-daniel.lezcano@linexp.org> <18ade2d0-ebda-0526-71f3-65a0b2685068@linexp.org> From: Daniel Lezcano In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 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 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 Hi Niklas, On 25/07/2022 01:28, Niklas Söderlund wrote: > Hi (again) Daniel, > > I figured it out, the thermal zone is disabled after this change. For > both rcar sensors with the new API thermal_zone_device_enable() is never > called. > > In the old API the zone is enabled in the call chain of > devm_thermal_zone_of_sensor_register(). While after this change the zone > is not enabled by the core when calling thermal_zone_device_enable(). > > If I add a call to thermal_zone_device_enable() together with the new > API everything works as before. But I'm not sure if the correct solution > is to add a call to thermal_zone_device_enable() in the sensor drivers > or in the call chain of the new API? > > On 2022-07-25 00:39:10 +0200, Niklas Söderlund wrote: >> Hi Daniel, >> >> I tested your branch, unfortunately with the same result for >> rcar_gen3_thermal. Manipulation of emul_temp file do not trigger >> actions. Thanks for investigating, I updated the branch. Does it fix the issue ? -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog