Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1588937rwr; Wed, 3 May 2023 18:22:32 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7q4h3QLMwkvv7D/oksqcKE3nTcYvkGwZrFFVS5P5tkjXyvnQabaSg0l1QLwPeJ1nPC5Z4j X-Received: by 2002:a17:902:b195:b0:1aa:fb67:b943 with SMTP id s21-20020a170902b19500b001aafb67b943mr1826845plr.62.1683163352569; Wed, 03 May 2023 18:22:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683163352; cv=none; d=google.com; s=arc-20160816; b=KhsyxAS5aNTvgQ0PqfxLBoI4bdj6Z6kwKD40EGuEKFHgsCpLYtKfq3Az1P8IAv4zCE EshbxyDrVFA0+fvlWXk9SiBKL90EwnGeGM5emF8qzxiY9EW0Isujz5oFhbQ1Lcn4IvHK oYNi/AfoFwHmkk7q80f+HLj5ecovywFacf77OPzMdUconqc4qs8qqcH88A6Bz9DRvkIS Hy9DEwwoOOUR4QjxzK4rmUT57oghVK9dTrJ4pmBDqYeOI5He18JifSSmFzVrC7iJ9Dgf WHYrnGJJeah6AgbAVhgfeJbEX7CCZGKW0mz8GlDHBi2mPVLhKhCKJbq4IFe0kMZqZvRm x8vw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=s7NrV4G8na4Xxto46bFuiPDfi4MWEN0iwsnSjgvxz40=; b=Tar4R4v85caLLOSOtLeKXsIWEbQCcHvd7UrVcFFpNdjbD56w3Tdsva7p1q9lzicFzp YseAEzDNoElVkUoNmdiOoq4FDt4t8x9KAipbu0Noqp8f+UHHWQsnPWfO4QJxoDOipxMO 0LjB0hBopRRs98Uk294StAvr37+PZpLSiRcvICHw0FQx/HWR5PUcpV8PZTGvDFdIXSTh RL5U5Lphc0GSoPC6NJSCbCNnNFLwXSbjbr1NTtAAiekmZ2FysQk4FAgqkKqcaG5HJeY+ i00EcpdDKiahSaAbnsE1szS77gachW2/bcuqVzg0VhgKoeKhTa6r3aERPRO1DQJ+6ctd W8FA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=GoF7tKks; 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=QUARANTINE sp=QUARANTINE 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 e17-20020a170903241100b001a66ed4f67fsi34785803plo.292.2023.05.03.18.22.11; Wed, 03 May 2023 18:22:32 -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=GoF7tKks; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229680AbjEDBCA (ORCPT + 99 others); Wed, 3 May 2023 21:02:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33006 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229460AbjEDBB7 (ORCPT ); Wed, 3 May 2023 21:01:59 -0400 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 8EFE1124; Wed, 3 May 2023 18:01:58 -0700 (PDT) Received: from notapiano (unknown [IPv6:2600:4041:5b1a:cd00:524d:e95d:1a9c:492a]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: nfraprado) by madras.collabora.co.uk (Postfix) with ESMTPSA id F093E6603050; Thu, 4 May 2023 02:01:54 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1683162117; bh=QIc5SJMWqFHScIbXxCJ80FSyeGnnxhBPq9Nglpv16dY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=GoF7tKks+0r9w3slMFA52UCUjtZji0S1Ro4Z+f0NOCspw0LEGjEyhfuXwdqEPPBpf SobHoYAenMMDr2lVWHc79h7Uf2s2Y9HldVbYu5Aaq2bamlRXs6Uh/3MFwABByfekwj WdOuqPQS27hMEc8e9LxER0LliWjfJqcBfs3OafA0RYS7WeRuiD3bPwHE9a2+JM7Ozq G+kKuTi09O1TfRRAg51BcdpAFUD4iIJ0T+BL2s+X9pnpRGM8JabIsTIBurfXQMlojG jb/rCJ5LASS2Wnxqnrw81mZycTqW4tNO5FuvREGs1fRkx+2ABLIYgdirnRcu+g7gIq 3EETfeDuWI7KA== Date: Wed, 3 May 2023 21:01:51 -0400 From: =?utf-8?B?TsOtY29sYXMgRi4gUi4gQS4=?= Prado To: bchihi@baylibre.com Cc: daniel.lezcano@linaro.org, angelogioacchino.delregno@collabora.com, rafael@kernel.org, amitk@kernel.org, rui.zhang@intel.com, matthias.bgg@gmail.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, rdunlap@infradead.org, ye.xingchen@zte.com.cn, p.zabel@pengutronix.de, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, devicetree@vger.kernel.org, wenst@chromium.org, james.lo@mediatek.com, rex-bc.chen@mediatek.com, abailon@baylibre.com, amergnat@baylibre.com, khilman@baylibre.com Subject: Re: [PATCH v2 5/5] thermal/drivers/mediatek/lvts_thermal: Update calibration data documentation Message-ID: References: <20230425133052.199767-1-bchihi@baylibre.com> <20230425133052.199767-6-bchihi@baylibre.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230425133052.199767-6-bchihi@baylibre.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 On Tue, Apr 25, 2023 at 03:30:52PM +0200, bchihi@baylibre.com wrote: > From: Balsam CHIHI > > Update LVTS calibration data documentation for mt8192 and mt8195. > > Signed-off-by: Balsam CHIHI > --- > drivers/thermal/mediatek/lvts_thermal.c | 59 ++++++++++++++++++------- > 1 file changed, 43 insertions(+), 16 deletions(-) > > diff --git a/drivers/thermal/mediatek/lvts_thermal.c b/drivers/thermal/mediatek/lvts_thermal.c > index 8df7b4c72a658..3df4989f9902b 100644 > --- a/drivers/thermal/mediatek/lvts_thermal.c > +++ b/drivers/thermal/mediatek/lvts_thermal.c > @@ -531,30 +531,57 @@ static int lvts_sensor_init(struct device *dev, struct lvts_ctrl *lvts_ctrl, > * The efuse blob values follows the sensor enumeration per thermal > * controller. The decoding of the stream is as follow: > * > - * stream index map for MCU Domain : > + * MT8195 : > + * Stream index map for MCU Domain mt8195 : > * > - * <-----mcu-tc#0-----> <-----sensor#0-----> <-----sensor#1-----> > - * 0x01 | 0x02 | 0x03 | 0x04 | 0x05 | 0x06 | 0x07 | 0x08 | 0x09 > + * <-----sensor#0-----> <-----sensor#1-----> > + * 0x04 | 0x05 | 0x06 | 0x07 | 0x08 | 0x09 I don't think you need to remove the controller calibration data from this comment, even though you don't use it in the code. Could come in handy in the future. > * [..] > + * MT8192 : > + * Stream index map for MCU Domain mt8192 : > + * > + * <--------sensor#0---------> <--------sensor#1---------> > + * 0x04 | 0x05 | 0x06 | 0x07 | 0x08 | 0x09 | 0x0A | 0x0B Each sensor data is 3 bytes long, just like for MT8195. The fourth byte contains the controller calibration data, but it is spread across these fourth bytes. I'd just leave these bytes undocumented for now since they're not currently used. So, + * <-----sensor#0-----> <-----sensor#1-----> + * 0x04 | 0x05 | 0x06 | 0x07 | 0x08 | 0x09 | 0x0A | 0x0B etc. With that fixed, Reviewed-by: N?colas F. R. A. Prado Thanks, N?colas