From nobody Thu Sep 19 23:06:25 2024 Received: from mail-pl1-f171.google.com (mail-pl1-f171.google.com [209.85.214.171]) (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 216B8154BE7 for ; Wed, 10 Apr 2024 13:03:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.171 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712754183; cv=none; b=Xfcq7dAfZaKnF24sMTlCAeIbZ3u1fw3xNEYy+rkc7+IN7TfHXQcE0cb2+Ewis+Ja0vHh8h0rsc2EIIcnYj7U8DmTTn8kURHzCkcNDVzvTZ+3Yixiwv1s6xdCe9KiMnn8opG7iddqPdGlbPHIEeNxcpaHDAO1OBDbj2hdd7lpgpQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712754183; c=relaxed/simple; bh=Mzy1RLChKpTXckeRfOn3L90L6pWcJRlTrF3gU8yBosw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:To:Cc; b=Ah8gAqj2VfrN3TMyw9tfFmZNciEGVLGPqPtURdX1L9d6AeK+lfzCUFhPpCMwLwy4E02p8VhwFhztGzHHnujzNaGQyY9pRgfuBxg7R/ydiQGetwbFa7jTHDL5LDlgnWeW5/TfH6FCFiKBRXsaU2PGJMR5eV1xtj7k189a5XYN/J0= 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=HV2v4aCO; arc=none smtp.client-ip=209.85.214.171 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="HV2v4aCO" Received: by mail-pl1-f171.google.com with SMTP id d9443c01a7336-1e411e339b8so25299115ad.3 for ; Wed, 10 Apr 2024 06:03:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1712754181; x=1713358981; 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=HV2v4aCOwl3k/clrmZQFBqxbjXAfywP+A1nfAEERh1oEHpPCE7lp29TZeR2QRva8Zk FuSULnBwlZSZOJTBnZblK6yDWkepeoEH9aVcnMgI3+d4tW/aEutjpsuxgZOxMv3meflG bF4foDQoigW1EGhuGL5wJOYjtaIXmq6njJ5GA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712754181; x=1713358981; 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=DeSwf2SA/0XyT5lsKnx2fer1Y1mGQgv80p6mERmaxfkiX1HJaXTmysb5gjf9LgQ4Gl v59Np8CZ/7M7OxJ2Z5YiUd4fsQ5ffApisBAt3Q3LaysR4ES8h1Ujz1e2LnILd4hn/0yX YabzQzNgX1SlMjzmJVoIweVU8JE5l/zY+Uh9AgUE7UcHnYlJjFlZyHkXIRt5YTw3DoEa qQafpS0MB5ZigRrnOjqzJiLtpZCW0DXErMHF0uE9rARjzbPgl+pdYbQQmeE8fZhgHVzR HKpV78PAI9nNOCzZAK6M383yPxFWc+LVsVFciQhpgcI0xIp3TYvB8R5PabyF/4dZA3CI j1og== X-Forwarded-Encrypted: i=1; AJvYcCVE+OQ0/bEuJpRve8YH2nCW8cYsrOUEqZhpPn/IWXkcD+/BesU0JhJgggSUJ1DtJpTZBk9MCwZGHH5EEf72VpcaD0vhm4wj0AjtU9Bo X-Gm-Message-State: AOJu0YxViJOeyH5nVQHUzmxSbE5xSZP3uVr2L7N7u9+tkTQkMRtbaitj wzW/yZ52Lyg2DSKHwMHMB+X9yOdrIoaohNCNCbbmybP3Qk5uOmewez44hEj3akDbrx/AIwqT+7y Z/c4B X-Google-Smtp-Source: AGHT+IHqZzwYa8MxtXFxj041lgd7J88+1a1m5BQKJBRqUvFpLKeI9bdlPRTEzn2uQM5glqcDtWs7AQ== X-Received: by 2002:a17:902:fc48:b0:1e4:10d9:5dfb with SMTP id me8-20020a170902fc4800b001e410d95dfbmr3179942plb.38.1712754181302; Wed, 10 Apr 2024 06:03:01 -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 kq12-20020a170903284c00b001e29acb2d18sm10726341plb.4.2024.04.10.06.02.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 06:03:00 -0700 (PDT) From: Hsin-Te Yuan Date: Wed, 10 Apr 2024 13:02:48 +0000 Subject: [PATCH 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: quoted-printable Message-Id: <20240410-lvts_thermal-v2-1-621cb7c07a32@chromium.org> X-B4-Tracking: v=1; b=H4sIAPeNFmYC/3XMQQ6CMBCF4auQWVvTFgrqynsYYrBM6SRAzRQbD eHuVvYu/5e8b4WITBjhUqzAmChSmHPoQwHWd/OAgvrcoKWuZKWkGNMS74tHnrpRlH1Zm1PVdNY 5yJcno6P3zt3a3J7iEviz60n91j9QUkIJRCMf+mxVY+qr9Rwmek3HwAO027Z9AUg9I3KrAAAA 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 sup= port") 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-ee50b29c= 1756@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/medi= atek/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 = =3D { static const struct lvts_data mt8192_lvts_mcu_data =3D { .lvts_ctrl =3D mt8192_lvts_mcu_data_ctrl, .num_lvts_ctrl =3D ARRAY_SIZE(mt8192_lvts_mcu_data_ctrl), + .temp_factor =3D LVTS_COEFF_A_MT8195, + .temp_offset =3D LVTS_COEFF_B_MT8195, }; =20 static const struct lvts_data mt8192_lvts_ap_data =3D { .lvts_ctrl =3D mt8192_lvts_ap_data_ctrl, .num_lvts_ctrl =3D ARRAY_SIZE(mt8192_lvts_ap_data_ctrl), + .temp_factor =3D LVTS_COEFF_A_MT8195, + .temp_offset =3D LVTS_COEFF_B_MT8195, }; =20 static const struct lvts_data mt8195_lvts_mcu_data =3D { --- base-commit: 20cb38a7af88dc40095da7c2c9094da3873fea23 change-id: 20240410-lvts_thermal-3d365847acff Best regards, --=20 Hsin-Te Yuan