Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp928570imi; Fri, 22 Jul 2022 12:48:49 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tAnzqYIorD3jt4VRlzxHMl51l6A6178FrBgkWM2qbWWODbn7NPhYVlGXneOpbqBKXQuE7R X-Received: by 2002:a17:902:8d8f:b0:16d:4d01:77c9 with SMTP id v15-20020a1709028d8f00b0016d4d0177c9mr697953plo.29.1658519328982; Fri, 22 Jul 2022 12:48:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658519328; cv=none; d=google.com; s=arc-20160816; b=tsycM3qaOemhM/66ouA1DIUELGW+6FOcFGT6e3xyf5SXHD1Tf+9nHoImk8mHUdMeFz 0CPsACzvjCdZ38jcNVjscXpb9sHM69BBwxwGazfvIU5rpED6cFGoqGAhIRmbPHgYe59g GvItdrY5013BBWdyDDcgq9qsnBY2E7uOZFgVt8XQDPmQ+QeVFgUn/E1i9m6G4H66kfhk C/bZM7PuPmvitUSbRxcJIdQsOfCCAqAkl0GpT5aZcTraSCe7lRGwfseeDJ+nYUhjBWtt zUXaGJI25aQJZaiyDqfW0hOmOfi/20sB6cvoDXvXijEFYiy/7ydbhKlm9RLrRTvKEf4c 4UIw== 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=hH95XjXDX7HfOaSlIRmgwv/BqeTgRb6XTDE5kgrObnw=; b=ruZrnBK1WDb1jMq0zWojMR6GTvxMw1/UwD5ldBNLedUvW2df0Wx/NnZvwUDj6Qnzc+ 0vqI0SndWdU6puEdieGJx5VKsscJXLy7nVyB6XdkLP4rck72/sUl2KfRKVVYqrr/UZ7f PHZvRXPDKmFMw2bt4zy1K0UC/ewQ/SooPN38tsAO+vx/zD//YwQ44d5To1lYbuxhN/AV uoD3mAXZyaHVXz+h77b5eRfoOpKu9oy6VEweU/obBtAz3u571AgaxmzPUt/fpndlDyRF 6EsPr2Oyl0/mAxGFDv9c/uyURetdWYTSKBWLrNCol2MExklKFbq7UfVwrO/8b4w7N7j3 p73g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linexp-org.20210112.gappssmtp.com header.s=20210112 header.b=Y8kB1Cm6; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h71-20020a63834a000000b0041183dd02cesi5957513pge.621.2022.07.22.12.48.33; Fri, 22 Jul 2022 12:48:48 -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=@linexp-org.20210112.gappssmtp.com header.s=20210112 header.b=Y8kB1Cm6; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236335AbiGVTeo (ORCPT + 99 others); Fri, 22 Jul 2022 15:34:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35702 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232157AbiGVTem (ORCPT ); Fri, 22 Jul 2022 15:34:42 -0400 Received: from mail-wr1-x434.google.com (mail-wr1-x434.google.com [IPv6:2a00:1450:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DCD997AB28 for ; Fri, 22 Jul 2022 12:34:40 -0700 (PDT) Received: by mail-wr1-x434.google.com with SMTP id n12so7796357wrc.8 for ; Fri, 22 Jul 2022 12:34:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linexp-org.20210112.gappssmtp.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=hH95XjXDX7HfOaSlIRmgwv/BqeTgRb6XTDE5kgrObnw=; b=Y8kB1Cm6Ke5WUBLa2g5aeGLuqzWiz6e83CNVVFUNCaPFbl+6aviz0oAIgpcLgWeOhy 8AU1egNqYttU1lL2dKfSgzutc0j+z3ioqjaDVks7OJS2alo52xnMwjeS+IpIWdVdcIhC Dw9RKhkBZBQZA+PF7D1CxXNC03o3HSsx8+ROsSlrH54kmv27qMC/+CofeRS3IoFNMgfP /nKdIoelZyposoh9WDt1Z3E5Fh6GcMo7bTiBnL3U6jSpaln49HOvCnq9isFeYc60Zkr4 Npa5rEUcKkDb89O8uxo3m4HyaiYSKVIFs/p64TC1MHDan7molZifCYIep1kJu1FWSvmw h1/Q== 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=hH95XjXDX7HfOaSlIRmgwv/BqeTgRb6XTDE5kgrObnw=; b=VIEPWe5+dHYRcus+huFc8UUWorT+ZItB7PbOVwlPXrwMNXxFVxOcZJjw5Rg7ulNum/ sxclcThga8PlTEpuV2is6dxaBF3gQ/VqQXdwCDm2MxaAHLdzqhwH86myeZGIZP6lEWPr WCmt+s3UloLdF8F/6+PVvr7m6RQLhoLXM5RVMvlAE5UY5daVzYMeo39J30uxNPi0Eej4 bG0Z/i5DYq2YxmDIHdzS5V108QaD+NJPhgK+JFsD+mhc5AmfULUqKTyHl03hoideV/XQ OWMIIVNVIBd/qD1YG6DP5/B92TF/RwIFjq8ejCMLdEkS0yOnWE28AY3D5P7uEoEEpHw/ 9J7Q== X-Gm-Message-State: AJIora9PUOoVhUox5UcimSi6z8QwrY2+Dn+IDfrr7qFyE7+P68D2zMYm bZATPLNWJxoxhDR/1zidkC4UYQ== X-Received: by 2002:a05:6000:100d:b0:21e:69b3:1901 with SMTP id a13-20020a056000100d00b0021e69b31901mr892749wrx.622.1658518479213; Fri, 22 Jul 2022 12:34:39 -0700 (PDT) Received: from ?IPV6:2a05:6e02:1041:c10:957f:d36d:87f9:5c17? ([2a05:6e02:1041:c10:957f:d36d:87f9:5c17]) by smtp.gmail.com with ESMTPSA id k23-20020a05600c1c9700b003a31b00c216sm6380839wms.0.2022.07.22.12.34.38 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 22 Jul 2022 12:34:38 -0700 (PDT) Message-ID: Date: Fri, 22 Jul 2022 21:34:37 +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?= Cc: daniel.lezcano@linaro.org, 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> From: Daniel Lezcano In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,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 19/07/2022 11:10, Niklas Söderlund wrote: > Hi Daniel, > > Thanks for your work. > > On 2022-07-10 23:24:07 +0200, Daniel Lezcano wrote: >> The thermal OF code has a new API allowing to migrate the OF >> initialization to a simpler approach. >> >> Use this new API. > > I tested this together with the series it depends on and while > temperature monitoring seems to work fine it breaks the emul_temp > interface (/sys/class/thermal/thermal_zone2/emul_temp). > > Before this change I can write a temperature to this file and have it > trigger actions, in my test-case changing the cooling state, which I > observe in /sys/class/thermal/cooling_device0/cur_state. > > Likewise before this change I could trip the critical trip-point that > would power off the board using the emul_temp interface, this too no > longer works, > > echo 120000 > /sys/class/thermal/thermal_zone2/emul_temp > > Is this an intention change of the new API? Absolutely not :) Thanks for taking the time to test and report back the issue. I'll investigate that. -- D.