Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp879088rwe; Thu, 25 Aug 2022 10:42:57 -0700 (PDT) X-Google-Smtp-Source: AA6agR6KBBBLdXZeEClZiRu4D316TvZepud1qYPReb3CaEnzXU0iBBUeNbUKI5GxC7b6T2gTmp6i X-Received: by 2002:a05:6402:4148:b0:440:cb9f:d10f with SMTP id x8-20020a056402414800b00440cb9fd10fmr4047785eda.77.1661449376922; Thu, 25 Aug 2022 10:42:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661449376; cv=none; d=google.com; s=arc-20160816; b=hcAWAGEtjoaCHFKH9ZMHJF/dsA9QJvYgjjAnQj+xTGawOnu1vhw1aHp40kC4ZUD5u3 7Fm55MECEWorJpsRci8qH6odOJheV2BxwarHHJ5CIiZRUZpma1BRyWAxqxxTRbU3TYJA vep+nxX2Jqg8JjKuCuLf1fuoWNt8nWtmypfa9gzLYLmZmtFSm9Q67uDN7+Jos8zz2l7e w9aaoAe9VXxS77dc5c8mOWFm4izjfaymW+/tzyXA6pgJtWwW8RmaBHY9eSMlv5KWCq0q U2d0TTKP43kQrx6ORlSXXRYvzKuZYK99ERTgS24VlcKwqNzL6p+UkcmsfUiONtrrAaYM 8p5Q== 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=xv80AdlB+SsjBLoDIgwEjmBWdBKDGfqlqLNj3IFDEQs=; b=ohWBZ7bMTzSmbR8ydMdTW4r+xIYPKWmB8i9ORWSmvzx5SoULRcyKasA2ZbnsBdTUVy BVDbWhSBWQkCD3gIHqE1Iv8CxaSIysqrgeNCsW5Ma1dziZzq9+Lgr/rPoOBCchmN/7Yx ZOafmoqfUWJExikIoJcvMD77srWse/LrK5m0ERIPBJ39TH+Pnu6NKleioCl7I/GaOtSZ gvipZtVy/0EgsOOLb1cPK3HNT4V/jgKiJYj54BBcdXKIfRtPIIB2RUYadOZ56U7K6X4W ZaKAqR3D/n9LRa2DiQrpK/sz5AS0sxOJAG+JEEKAub+8JPh56M4TYbXD6RS+W/02IAlF 6Ieg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MStK53Ak; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sh11-20020a1709076e8b00b00732f74749ccsi4230901ejc.581.2022.08.25.10.42.30; Thu, 25 Aug 2022 10:42:56 -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=@linaro.org header.s=google header.b=MStK53Ak; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242346AbiHYR37 (ORCPT + 99 others); Thu, 25 Aug 2022 13:29:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37318 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241018AbiHYR35 (ORCPT ); Thu, 25 Aug 2022 13:29:57 -0400 Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3F15A14D1B for ; Thu, 25 Aug 2022 10:29:55 -0700 (PDT) Received: by mail-wr1-x436.google.com with SMTP id bs25so25515557wrb.2 for ; Thu, 25 Aug 2022 10:29:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc; bh=xv80AdlB+SsjBLoDIgwEjmBWdBKDGfqlqLNj3IFDEQs=; b=MStK53Ak1Gk5mCSta3xroLD0KsZQ6DY4QsKYMe4pOrMp2u1HfYHa1m2wMVMyTSHmwb pS9G587JwlukyBLYXS4dWDK4ZJEBFfRRfMU8BIUXyps9qcHjYepPp5l9vtZCSA+FRQY7 5Ym5jfikNtrThLCo6a8KYEHLolX5oMux7G5jVQ/qGES6XtoscQ3oyVgxP6SpqCsjANeL ntr7Jx/gfyYtsPd3d4Nhjqnaab+pID5+OPeW7AI7cgHR/PlrBmChuA8owNxA4iVdmd+D uR/ZT8N35oCgJRj2Q6wPHJ8zb4bs2hlkrqOdDJUnbKDR366whziUl3ha9uHOlgILoB9+ BNBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc; bh=xv80AdlB+SsjBLoDIgwEjmBWdBKDGfqlqLNj3IFDEQs=; b=qCVCbiFI0xWzzBOaJIuY8VlBYQ/KfJVIjHK3IqDrqM8pwmVAaKMCWk0BKnZ0OSh+Ub HMwGtmTIk+OSy5UgmulRvwcWGgaLLegQvEIKv/tKfjkyg+ks7+AM6MvENcEBH81ghKXV e+TkUG9WTRtsd7HYAjeuQDNXTen6GelkteWP27O7Iu3Emf24E/NGpdpPKCmJHe9c7CMh bQKxqKPGt6pZ0e9n4hiN8WBDR+71t1p8wjywK0yC5/G5mxOG6o3LWYgoAazmd/ietQmT xj5RX4H5ldM+r9ydUoSoCrguiOI98wubr9Ug6pwkpxxJS5X6Pik1TZNV8JIcG2uzSqhj UNJQ== X-Gm-Message-State: ACgBeo0JpS507UopCMlQuVnHCl+v/LZkYnu8WV2ynKAxoBMSsmGQ1AyO dP8RhI+p/C94m1zxMgj/Hhb3JQ== X-Received: by 2002:a05:6000:1446:b0:222:c466:58a0 with SMTP id v6-20020a056000144600b00222c46658a0mr2973130wrx.53.1661448593721; Thu, 25 Aug 2022 10:29:53 -0700 (PDT) Received: from [192.168.10.46] (146725694.box.freepro.com. [130.180.211.218]) by smtp.googlemail.com with ESMTPSA id g13-20020adfe40d000000b0021f15514e7fsm24976334wrm.0.2022.08.25.10.29.51 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 25 Aug 2022 10:29:53 -0700 (PDT) Message-ID: <05fa19f7-7997-51c3-767f-c40cb321d2a4@linaro.org> Date: Thu, 25 Aug 2022 19:29:51 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH v9,4/7] thermal: mediatek: Add LVTS driver for mt8192 thermal zones Content-Language: en-US To: bchihi@baylibre.com, rafael@kernel.org, rui.zhang@intel.com, amitk@kernel.org Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, khilman@baylibre.com, mka@chromium.org, robh+dt@kernel.org, krzk+dt@kernel.org, matthias.bgg@gmail.com, p.zabel@pengutronix.de, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, james.lo@mediatek.com, fan.chen@mediatek.com, louis.yu@mediatek.com, rex-bc.chen@mediatek.com, abailon@baylibre.com References: <20220817080757.352021-1-bchihi@baylibre.com> <20220817080757.352021-5-bchihi@baylibre.com> From: Daniel Lezcano In-Reply-To: <20220817080757.352021-5-bchihi@baylibre.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Balsam, On 17/08/2022 10:07, bchihi@baylibre.com wrote: > From: Michael Kao > > Add LVTS v4 (Low Voltage Thermal Sensor) driver to report junction > temperatures in MediaTek SoC mt8192 and register the maximum temperature > of sensors and each sensor as a thermal zone. Thanks for your work First of all, the patch is way too big. The organization of the data is hard to understand. Could you give a description of the sensors, how they are organized ? I can see the there are 'tc' and each have a group of sensing points? Is that correct? Do have the 'tc's a shared clock? etc ... I have another email with the comments inline but without more insights on the hardware it is difficult to review accurately. This driver looks more complex than the other ones I've reviewed. At least that is what looks like with the different macros names found. -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog