Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp2386860rwb; Fri, 20 Jan 2023 02:10:10 -0800 (PST) X-Google-Smtp-Source: AMrXdXt/F5HWNwQfr82g9tJGpmE3P3txSh3ABUoQTis1rWrsLzY5Smjb9rOmF5Cpixt+xHjnB4Dh X-Received: by 2002:a17:90a:db90:b0:22b:b3b6:cf76 with SMTP id h16-20020a17090adb9000b0022bb3b6cf76mr863145pjv.17.1674209409995; Fri, 20 Jan 2023 02:10:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674209409; cv=none; d=google.com; s=arc-20160816; b=J/7Hj5zlO7CJBH2+X6snYYhKp3o43exsg2hCeKCL6Qezxzneqg+rXz7l1Cnz0/p+PM VcilpGFhnz700c8Z17JbgSztO9J4Z9vc9h6KA7GUYGwiS8QcC5lzr4PAdOWvWAArsdQ6 nAHQ0m/lMclrId4E7j8sKa5dg5OW/pMPZ8tTEiqYYL2CZkiravOS+MOnjhbcZRrLD3xb PYGyxxvIJDvxzxxAXEXQQfQn06NmBxPB0ADxwyW1Aiz/ZByfigHnLGUWjQYsEFsun428 aI9AKRPsnTyH26cg9jFywtiV3dKiJiclT/3l1QntNTYX8TfU5twDFlKxJ2Mcb+v8sE2q rkxw== 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=jA2LFava6sRFRnqPf8yCF2XK7PKRsUF86VL0JW6g9pQ=; b=NX7j7G/QkVbX4dyS0UxK6L42j7HGrnsN9ipDvkH4XgV8vDoEhKIi8fMmdwYaAae9vy lmsij70oZUmPrpUD3sHIxA4tex2ahI7Wz8NOmy/n8MoXE7gDrYOQpSD+B/UN6Gak/o4e Bqijmgd75CjcK6ZIroF/v4Zg24F0nthr8TG5JZ94nH0ISBJgsGTBEbPJHsaaEaFqHUuR OnFaWQ0W3swj025uPlHPrGUo4A4x2UBaJQ6yhXCLig8EAIzF9lJSUPIsZLwemTV14mQi xMpdJv4pBl5RBSPchhWgEe6a2IeLgFg8qoHmU5G0DPXIFx70gIT3vaasDlGRdDICy+tQ KY9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=kcehd1Jq; 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 k37-20020a635625000000b004d0682f947fsi8455757pgb.166.2023.01.20.02.10.03; Fri, 20 Jan 2023 02:10:09 -0800 (PST) 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=kcehd1Jq; 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 S229636AbjATIxq (ORCPT + 48 others); Fri, 20 Jan 2023 03:53:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36614 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229562AbjATIxp (ORCPT ); Fri, 20 Jan 2023 03:53:45 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 90E0E8B30C; Fri, 20 Jan 2023 00:53:25 -0800 (PST) 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 53BE6660087F; Fri, 20 Jan 2023 08:53:23 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1674204804; bh=SSwbJApT+7gQSGJQ/b+H3IPkK4hbO5OL73lIyx5BgMc=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=kcehd1Jq0FFH+HQ+lMBOMtNqdZL8spAJ9jdGNO+emTS4Z8FfWmjNxzsZ6z91dBcRS sk3QV21MV/sGyRubA2G1w7oKJC2Wiv3Ztqb+bmMgMgWnR7x5+1xolzymlS+lPXV3Yi EQUliJay9oJaIGofsVKJ+pWgYMgCZd3H9U3y/49ZpACz27d8LMhAjMGusTCQulCyuh c0nwhN2QoVqEshjdLoLyjdovy1IQsGbm6n4p3Wm4kCPq3RTeaNYw+tSV9BypiEZqFo lGlCzin0xwqbTBqu1r4SgWoyzV/GT4sjdJf9ggFebVJpoHNdy4ZsSjmtMB/Fs4nvuH Wj+8EvBtTSqLQ== Message-ID: <23691243-303b-5f0a-df59-f272137e083b@collabora.com> Date: Fri, 20 Jan 2023 09:53:20 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0 Subject: Re: [PATCH v5 2/2] thermal: mediatek: add support for MT7986 and MT7981 Content-Language: en-US To: Daniel Golle , linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, "Rafael J. Wysocki" , Daniel Lezcano , Amit Kucheria , Zhang Rui , Matthias Brugger , Rob Herring Cc: Steven Liu , Henry Yen , Chad Monroe , John Crispin References: <2d341fc45266217249586eb4bd3be3ac4ca83a12.1674055882.git.daniel@makrotopia.org> From: AngeloGioacchino Del Regno In-Reply-To: <2d341fc45266217249586eb4bd3be3ac4ca83a12.1674055882.git.daniel@makrotopia.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.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 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 18/01/23 16:40, Daniel Golle ha scritto: > Add support for V3 generation thermal found in MT7986 and MT7981 SoCs. > Brings code to assign values from efuse as well as new function to > convert raw temperature to millidegree celsius, as found in MediaTek's > SDK sources (but cleaned up and de-duplicated) > > [1]: https://git01.mediatek.com/plugins/gitiles/openwrt/feeds/mtk-openwrt-feeds/+/baf36c7eef477aae1f8f2653b6c29e2caf48475b > Signed-off-by: Daniel Golle Reviewed-by: AngeloGioacchino Del Regno