Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1898427lqp; Tue, 16 Apr 2024 00:36:02 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUJ5lLAEBTVVEVs8Ov9pJEQgkGi/3AnGyA/O6FbR05XfmozSY/AgBYmqJITJU0C/FWqqvcmbq/K4nOC4q1lHCFO06dMvjUlZ+niDJPL4w== X-Google-Smtp-Source: AGHT+IE0EIaqIGawI+OQkvNdzeyqL2lwSsT41p3wX9GV5i/4Xbke0D1zRKNWayjND0KfM0NavKpp X-Received: by 2002:a17:902:db04:b0:1e5:9e56:b72d with SMTP id m4-20020a170902db0400b001e59e56b72dmr11937459plx.1.1713252962561; Tue, 16 Apr 2024 00:36:02 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713252962; cv=pass; d=google.com; s=arc-20160816; b=rdEDDt/eFkWEslVAIhdxMVYf7KWVv5eolgeaWsKDAzctCMWrNtvoA7jrre6e78jXmW Vmeq4Axp7MNqK70FXFzZ/VziTq9wbaVMAG7KA4q4Z/H3yOddEMGuZf6U8jReYs4NUK6U qmw9rqwgnTCVq2Jv5HFLz6CLJhwuYAjwuWHcRtf1nRAt9tyXGVp/I27i4f5x3n8ogVz1 iILTCd+Q9zAg4flZxVA/E8dvhUsms+BhK8RTEA2WHhRq7RmYNXZn/N80c2PIqGyjtMWa 1YC0GahgMNNtyhjIUt014GMWVeMq7cQPGnKi3W3zhEUybSkdM2JWvXQSJOSXsP4oWVkR sU/w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:message-id:content-transfer-encoding:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:subject:date :from:dkim-signature; bh=x3Y56dDS984KsDzs2nzTKgy6adBy9joM/agCd66RARo=; fh=xxABFJXbu8MJlMLpaLVDQDc0Gf/IT6qBBwNIazjAL8s=; b=PxYCqXEJZp7wFyF6gh5PO3H/g61O0mzCwBatV2h11drbqj+OZNj9OudunjTAN4ALRI EkW5P8s2a7OXprE7LXrE/FY8mWUUrIVFfDkveKHy8SjhEPsoWSSh6vNHwOrbrPD3AW/h InZN727PLj7LjcINNTBJCB1lqbr2lq/zLCT+tx+PRTsbGAI+2GmAvm25UlZePbz3ILCo 6u/wVxrra/5TwpXtue/2WopVLmYdcTQ2jqcImVCzrJAm0HcdWclM9JUlv84557MKXzse BdMWvVRU657Wx3qB7QRKYvvZPspDqXn4urZDdWfR8GoKssLhfnJATokDpwHBS/Ny2ZRt tlVg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=m8YNJqle; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-146435-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-146435-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id b4-20020a170903228400b001e2b0e6247dsi9772486plh.415.2024.04.16.00.36.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Apr 2024 00:36:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-146435-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=m8YNJqle; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-146435-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-146435-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 3EDD0284541 for ; Tue, 16 Apr 2024 07:36:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 64DF18172E; Tue, 16 Apr 2024 07:35:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="m8YNJqle" Received: from mail-oo1-f53.google.com (mail-oo1-f53.google.com [209.85.161.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A8C3971B50 for ; Tue, 16 Apr 2024 07:35:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.161.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713252955; cv=none; b=FgQIgxitK88WCOUopYEBxBXb6RUuvDr2l49ndiE2Y5QRFcLmHZWwwKN0kDporTkHfFlM68SltIZ5H8wykT3vZFj5gwTC2Rt4ZfUnB0TgJGB1KrXTJHnowahHcIm+07FQ0/FvksX6xQA+0v/B665yAzJIq91wSSxRm4FcVwfFm6g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713252955; c=relaxed/simple; bh=Mzy1RLChKpTXckeRfOn3L90L6pWcJRlTrF3gU8yBosw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:To:Cc; b=u7tXlUHB8C6SEkI3EaOVv4SsPArKAoXkNZYKhzb5G5Nd4yno7RlTMvtQeS3b8zxyB0BIjnyfHUY8W8+8VmvSZUJo0qr8nJLsjiZe5TFvn6FukMl/WSzfX8HyEaF+i//hKT6IaDzT4W7akMr6ABQv/rM/wZFQItl27VnBBY4JIB4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=m8YNJqle; arc=none smtp.client-ip=209.85.161.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Received: by mail-oo1-f53.google.com with SMTP id 006d021491bc7-5a7d6bc81c6so2993382eaf.2 for ; Tue, 16 Apr 2024 00:35:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1713252952; x=1713857752; darn=vger.kernel.org; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:from:to:cc:subject:date:message-id:reply-to; bh=x3Y56dDS984KsDzs2nzTKgy6adBy9joM/agCd66RARo=; b=m8YNJqleWJawjxqYMgdPyDvNSAxyEGyQieFXU+xYCur64y6QjTg9nl5J5nCO8pv7st CFrRu/S01DkAF+yulHAH61ryd6s4oIKjJU6hhY5EOJkBcSCA8os57qi3MGvpsFAqGOxJ QJKJ+vTRnSQ19nyRbyxZTmi+LuT/HXVFHJ9HA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713252952; x=1713857752; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=x3Y56dDS984KsDzs2nzTKgy6adBy9joM/agCd66RARo=; b=uVQ75iVmGAQ0KfZQwIByuysujM9x2fe5i9VmmmpCa8YoDGBHbHMM8dz3phH8rk43gd cKoSmSkfTaNtP4iEiKHUUjTw9YeSLgsOWcMrvfqVkRMAFjUQEC5c/V34UidbbfK5yPkn OX6VX0RRTbHWPxffZ4YdHeJ8KA3/TgPQl3iwHNLIO5VbcxU1vYKSG29zF4n6eME0rCTR U9xwMhRUZba16EzKykPwuhKKtdT8tXpankoFLoSOkqUDYGRNuduJit02UNjxlh++nXeC tvQEcxpAvMbM0vxdEWMIUSiRnCLTyY0rssUTj1UePvGQjWYQOlwYRNJTSpZsQJcX/CWM UROg== X-Forwarded-Encrypted: i=1; AJvYcCUqyNtGSBAnQoCfUEm37bCUBCShiDJQszvAKOVsxhRgNzBaocli8UDfFbJHWpmq9pJ0Q9D6OswYGbFcFVpK9ljZFGg1ELpKz34Iqmif X-Gm-Message-State: AOJu0Yy76rs9yMA9xgi2uH1MzpLsfztDlOIMK1TWSP0Sqc2p0dyQZ+Ip z5G6zlIjgwlEL/aDQECTuWSo7nvwT1YnfC/ziF3BfRGKYPW8hiAD5ZqJD1zwMd3bAF0e6QJ/6tF mGbWO X-Received: by 2002:a05:6870:568c:b0:232:fba4:4594 with SMTP id p12-20020a056870568c00b00232fba44594mr15920699oao.49.1713252952526; Tue, 16 Apr 2024 00:35:52 -0700 (PDT) Received: from yuanhsinte1.c.googlers.com (88.216.124.34.bc.googleusercontent.com. [34.124.216.88]) by smtp.gmail.com with ESMTPSA id j24-20020a62b618000000b006ea9108ec12sm8307092pff.115.2024.04.16.00.35.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Apr 2024 00:35:52 -0700 (PDT) From: Hsin-Te Yuan Date: Tue, 16 Apr 2024 07:35:47 +0000 Subject: [PATCH RESEND v2] thermal/drivers/mediatek/lvts_thermal: Add coeff for mt8192 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240416-lvts_thermal-v2-1-f8a36882cc53@chromium.org> X-B4-Tracking: v=1; b=H4sIAFIqHmYC/32NPQ/CIBRF/4phFgOvH6iTg10ddDTGUPpaSNpio BJN0/8uYTTG8d6bc+5MPDqDnuxXM3EYjDd2jAHWK6K0HDukpomZAIOc5ZzRPkz+Pml0g+xp1mR lsc2FVG1LIvJw2JpX0l3JubpUpyO5xV4bP1n3Ti+Bp/W3MHDKKWLBatgpLoryoLSzg3kOG+u65 Arwj4fIl8BVLRQTMoMvflmWDyKXp07zAAAA To: "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Matthias Brugger , AngeloGioacchino Del Regno , =?utf-8?q?N=C3=ADcolas_F=2E_R=2E_A=2E_Prado?= , =?utf-8?q?Bernhard_Rosenkr=C3=A4nzer?= , Balsam CHIHI Cc: Alexandre Mergnat , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, Hsin-Te Yuan X-Mailer: b4 0.12.4 In order for lvts_raw_to_temp to function properly on mt8192, temperature coefficients for mt8192 need to be added. Fixes: 288732242db4 ("thermal/drivers/mediatek/lvts_thermal: Add mt8192 support") Signed-off-by: Hsin-Te Yuan --- Changes in v2: - Reusing mt8195 coeff instead of creating duplicate definitions - Link to v1: https://lore.kernel.org/r/20240410-lvts_thermal-v1-1-ee50b29c1756@chromium.org --- drivers/thermal/mediatek/lvts_thermal.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/thermal/mediatek/lvts_thermal.c b/drivers/thermal/mediatek/lvts_thermal.c index fd4bd650c77a6..4e5c213a89225 100644 --- a/drivers/thermal/mediatek/lvts_thermal.c +++ b/drivers/thermal/mediatek/lvts_thermal.c @@ -1530,11 +1530,15 @@ static const struct lvts_data mt7988_lvts_ap_data = { static const struct lvts_data mt8192_lvts_mcu_data = { .lvts_ctrl = mt8192_lvts_mcu_data_ctrl, .num_lvts_ctrl = ARRAY_SIZE(mt8192_lvts_mcu_data_ctrl), + .temp_factor = LVTS_COEFF_A_MT8195, + .temp_offset = LVTS_COEFF_B_MT8195, }; static const struct lvts_data mt8192_lvts_ap_data = { .lvts_ctrl = mt8192_lvts_ap_data_ctrl, .num_lvts_ctrl = ARRAY_SIZE(mt8192_lvts_ap_data_ctrl), + .temp_factor = LVTS_COEFF_A_MT8195, + .temp_offset = LVTS_COEFF_B_MT8195, }; static const struct lvts_data mt8195_lvts_mcu_data = { --- base-commit: 20cb38a7af88dc40095da7c2c9094da3873fea23 change-id: 20240410-lvts_thermal-3d365847acff Best regards, -- Hsin-Te Yuan