Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp1686001rwn; Fri, 9 Sep 2022 02:24:16 -0700 (PDT) X-Google-Smtp-Source: AA6agR5I3bGE6bI0DKlE2unfqwhMS9emH9TICKlVvJ93V9gIwWGeTqUY6xVcAKOZASdhRmyRyqGU X-Received: by 2002:a2e:a4cb:0:b0:26b:6e61:6631 with SMTP id p11-20020a2ea4cb000000b0026b6e616631mr2186907ljm.66.1662715456109; Fri, 09 Sep 2022 02:24:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662715456; cv=none; d=google.com; s=arc-20160816; b=ZluUb6Y4m5Ot1iKuAukZjgrQYtUICh7BPwNRpYCi/YM5DyFIaUF0FUP5PB2cJWCKiq CKH62oZF9FdN//ojLjxbfhqMq55t5pvKkbuSZWY0YA2QL4KxwGiRfzTmbhi7AH3v/Hjf Pau101qEaTLlHhdxbhiwhAVzcjiK1/Vr+0u498F378i0aLfTr/nkWMIol2XOs6zTbuC/ BbwFO2+PqzXjJSJ/zm0E/Dbs/MAqCARWMejW+bsiJey8vCdrQoq0qzdYuvgkAQ40LdDi y923oFRNM9LEyooJRJxRmefjCUJaYU5YTegGiNFXa4lDVMCvu0kuZwNQz49r08jZTxlz mkVA== 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=rwpMb1Nu7FWWnOS2lL681MUFuWeZgg0Gu0PiwnVNrtY=; b=JFqIzXsB4dNiOKjPvHUY2MPgDwiOY/7S2y8QXb7GhPoU6nxYYjui9ZTKNDtVT7TdKa PXUPxkupjK3ONpib/tOeMIjZYFe+7xyVc6g3LhwdXYqI2zkRT4D2VsHWfp4Q6WBZoXUr O0xvIH8wnF4aShs8JezjIcn56F8+22qFie39ea5F29TseuYKQ7osjFhw3dyXHi+34jhw Gs8dlouaO7v7JUNmSNPmuewVS8bock+87r1i6Frhgbz6zdVRyQzQsk1kOQN3TfEgb/Av Ez4O1CYQho0BIADuXENF9alUr/XgprQPg0DgtMAzvxawmb2iFPZdqLpANL/sip95Utn2 bbHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=D+fZybsM; 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=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k11-20020a05651210cb00b00492e5e8d898si480lfg.501.2022.09.09.02.23.46; Fri, 09 Sep 2022 02:24:16 -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=@collabora.com header.s=mail header.b=D+fZybsM; 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=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229488AbiIIIhQ (ORCPT + 99 others); Fri, 9 Sep 2022 04:37:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48670 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231376AbiIIIhL (ORCPT ); Fri, 9 Sep 2022 04:37:11 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 88D0C108720; Fri, 9 Sep 2022 01:37:08 -0700 (PDT) Received: from [192.168.1.100] (2-237-20-237.ip236.fastwebnet.it [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id 9DC9A6601FB7; Fri, 9 Sep 2022 09:37:06 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1662712627; bh=t6gpOu9lmxJkdxd+/BURDuIYWhpRDTn0JYr4MfbX9Aw=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=D+fZybsMXoT1eb8mVsc4W//5YXPsgV3SxhBIbwz5tkrsSC5xthRgoGomiYV/w1wNP F/wigj9OkqqifBmkdbzUVlDULsIhFGzgk1Iqh6/2z8GdBZYKoLh8MCUIoYqhfb1Gsq 11x1fsNs2otUgjvCVUKPfqhjJPfpq4XKnsppb+IJz78QSIXSCyxq53p1HGG6KK0nzg psGIZfCilfYwO0UKUZNZNGz+YCn2F8XvGRDkKxBd63RsFXziYjgqDm5EQdmNwRoJkt KS8M1PP2KcyLxPE1ACRjgtNaSS3gT4BbgBPaOLJGiAZQYjQe2+fX40t0NQtyMCJMGk p9zkinhT22DUQ== Message-ID: Date: Fri, 9 Sep 2022 10:37:03 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.0 Subject: Re: [PATCH v4 4/4] thermal: mediatek: add another get_temp ops for thermal sensors Content-Language: en-US To: Amjad Ouled-Ameur , matthias.bgg@gmail.com Cc: rafael@kernel.org, fparent@baylibre.com, amitk@kernel.org, daniel.lezcano@linaro.org, devicetree@vger.kernel.org, krzysztof.kozlowski+dt@linaro.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-pm@vger.kernel.org, robh+dt@kernel.org, rui.zhang@intel.com, Michael Kao , Hsin-Yi Wang References: <20220909073609.32337-1-aouledameur@baylibre.com> <20220909073609.32337-5-aouledameur@baylibre.com> From: AngeloGioacchino Del Regno In-Reply-To: <20220909073609.32337-5-aouledameur@baylibre.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Il 09/09/22 09:36, Amjad Ouled-Ameur ha scritto: > Provide thermal zone to read thermal sensor in the SoC. We can read all the > thermal sensors value in the SoC by the node /sys/class/thermal/ > > In mtk_thermal_bank_temperature, return -EAGAIN instead of -EACCESS > on the first read of sensor that often are bogus values. > This can avoid following warning on boot: > > thermal thermal_zone6: failed to read out thermal zone (-13) > > Signed-off-by: Michael Kao > Signed-off-by: Hsin-Yi Wang > Signed-off-by: Amjad Ouled-Ameur Reviewed-by: AngeloGioacchino Del Regno