From mboxrd@z Thu Jan 1 00:00:00 1970 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 5A83FECAAD3 for ; Fri, 9 Sep 2022 08:37:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229623AbiIIIhR (ORCPT ); Fri, 9 Sep 2022 04:37:17 -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 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