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 CEDE3C43334 for ; Fri, 10 Jun 2022 05:59:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235925AbiFJF7D (ORCPT ); Fri, 10 Jun 2022 01:59:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46618 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239380AbiFJF67 (ORCPT ); Fri, 10 Jun 2022 01:58:59 -0400 Received: from mailgw01.mediatek.com (unknown [60.244.123.138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9164C2A969; Thu, 9 Jun 2022 22:58:58 -0700 (PDT) X-UUID: 638fde6925f34af99e37ca71494fad01-20220610 X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.5,REQID:6c41e09b-5126-4fea-97ce-0bc7c472f62c,OB:0,LO B:0,IP:0,URL:0,TC:0,Content:0,EDM:0,RT:0,SF:0,FILE:0,RULE:Release_Ham,ACTI ON:release,TS:0 X-CID-META: VersionHash:2a19b09,CLOUDID:8213e67e-c8dc-403a-96e8-6237210dceee,C OID:IGNORED,Recheck:0,SF:nil,TC:nil,Content:0,EDM:-3,IP:nil,URL:0,File:nil ,QS:0,BEC:nil X-UUID: 638fde6925f34af99e37ca71494fad01-20220610 Received: from mtkmbs11n1.mediatek.inc [(172.21.101.185)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1314194369; Fri, 10 Jun 2022 13:58:53 +0800 Received: from mtkcas10.mediatek.inc (172.21.101.39) by mtkmbs10n2.mediatek.inc (172.21.101.183) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.792.3; Fri, 10 Jun 2022 13:58:50 +0800 Received: from mtksdccf07 (172.21.84.99) by mtkcas10.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Fri, 10 Jun 2022 13:58:44 +0800 Message-ID: <34c4b4ba35054baa0f969936a4ca7252c5bd7629.camel@mediatek.com> Subject: Re: [v10 1/1] thermal: mediatek: add another get_temp ops for thermal sensors From: James Lo To: AngeloGioacchino Del Regno , "Rafael J . Wysocki" , Daniel Lezcano , Matthias Brugger , CC: , , , , Fan Chen , Louis Yu , Michael Kao , Hsin-Yi Wang , Ben Tseng Date: Fri, 10 Jun 2022 13:58:44 +0800 In-Reply-To: References: <20220519101044.16765-1-james.lo@mediatek.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2022-05-19 at 13:12 +0200, AngeloGioacchino Del Regno wrote: > Il 19/05/22 12:10, James Lo 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: Ben Tseng > > Signed-off-by: James Lo > > Reviewed-by: AngeloGioacchino Del Regno < > angelogioacchino.delregno@collabora.com> > Hello Rafael, Daniel and Matthias, Can you give us some suggestions for this patch? Thanks! BRs, James