Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1140957rdb; Mon, 19 Feb 2024 05:46:31 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXqz0HPo3Lfu/7pL5nvMi/VeBkPH/OKJFuAMJkq3Rykz7F92LAf49czMeNOZAXMtUWPiWFKNwJmne6gDiMx3+/2sLDuRUMxChOU3RicMw== X-Google-Smtp-Source: AGHT+IE8T5ab/X8NvZ7YJNOrj5tclYdgzOPGeXos9vMP02BhPdurDAYJJRI2PbcArtt0DKdrFVZk X-Received: by 2002:a05:6e02:1d95:b0:365:1305:fac5 with SMTP id h21-20020a056e021d9500b003651305fac5mr9984360ila.0.1708350391523; Mon, 19 Feb 2024 05:46:31 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708350391; cv=pass; d=google.com; s=arc-20160816; b=WOq/P8ISIBU8QNSJixGyCP3MkIyC3YrvxSyhAFRIKvsBUgYm9JsOE00Xn63/ximr9L CeF92iyS0CMAugo/y2iE/3F6w3TaIEIgpH8faUUF6jIofbeGOvI0wVzp4h81G8BQpxSd meH/aoGP4o/Q1/cgs2AhyEfI6kecy9WglDwan/uvKxA1j0hAwdYJoSeqpBHRxmu3fPjP iP/CuLr/TjxJmfa7DFkdL4smuoJCQMbKzGd2RRuNgkX2f+IMVu7d0QQHq/bEh6xh/+PB 87iocT4+1M48Rs9EFVmRXmyxH8y76IGMwkhP7Ls12lu9T5HhicVZtTRNCDNJar7Vn49C qBJQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:in-reply-to:subject:cc:to:date:from :dkim-signature; bh=FXLyqT2Qj8dHKpyvWV8cBxyKBkrl1zpsGloEi4nWFZQ=; fh=MrX5DEBVNeQ6j1hYGwGio2XVH3cYozhL2NSwfn1bXDI=; b=psiN4HYXzu6GRH8dZwGPPJ+71gCoxdaiNwZZhc9bDX7h83a0FJDtbm7drTQ3INa3xY zX9X88cV86S4pWZDJUG2kcKyI3A8Dd80RiIYs05pOxRqM1ggP3mQT7vCht7QWW1mrzoU SrYGw5JMyuN3diLZxewrvQf7nS0Vxl64+t0somRmkwgCEl/SQgJn0njlJZIC0rMc12LC +SgGeqvgjd2Ogy9vZtr+IlgYwrGofS5SUZphfW0stlgw1mfLqRZQKHDcqx17fxKaDY2o POb9FkSo2i8v1cMhyLip3ij6sT6elevqrGbzd/ZtSt4BoearlTU4oc2lqi8sq6jy9DCA wIKA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=gJwPMlI5; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-71234-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71234-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id ca40-20020a056a0206a800b005dbd0d798a7si4539945pgb.558.2024.02.19.05.46.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 05:46:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-71234-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=gJwPMlI5; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-71234-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71234-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id DD4C9B24679 for ; Mon, 19 Feb 2024 11:45:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5F8BF2D60A; Mon, 19 Feb 2024 11:44:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="gJwPMlI5" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C234C2D04B; Mon, 19 Feb 2024 11:44:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.9 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708343071; cv=none; b=YRILGaaGve+wzq8/XnbjqCuikShyhqak9U8aHtP0SP+TGQ+nysNi794+oyyasPNU/JKQX2eob+wLwE+MSxRPo5whn6rA6+ozekMz8jwt00SpHHfiHySRP55eHanYeJvNEE3pHzzTpFcOpCqWSFtxTlbwnK9Y+6dDe0LVk6fsSKc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708343071; c=relaxed/simple; bh=Uk+rptqnDtWSILv1zQxinfn6kYzZNxZAnPEcPsAC5OA=; h=From:Date:To:cc:Subject:In-Reply-To:Message-ID:References: MIME-Version:Content-Type; b=EzmjIvUTKAVgQxsMB3dze0lEFIpFNPZfVeOLsoUkz1+JP3OjW/cHTNe2iiXwHwx3WRWxT4reP1yqOTq+u/izv89NdS/OHDhKnLfFLgr7x6miA3nSByGhrkxEYlIidR4LAvkCcSdUBRTg6deVFaBuV5nQKBVxqhYZrI6vUh4N1MQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=gJwPMlI5; arc=none smtp.client-ip=192.198.163.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1708343069; x=1739879069; h=from:date:to:cc:subject:in-reply-to:message-id: references:mime-version; bh=Uk+rptqnDtWSILv1zQxinfn6kYzZNxZAnPEcPsAC5OA=; b=gJwPMlI5IzqmeFXD0No7lol+fMu04K0Q+QFScRApNek92WJumKiLby0t NEQPFRIz6inqV2k589HJ6/HAU/eXDtPcBBLPgxsQmr9KOo9irmDfkKfgO 1bqmUR7hsT42UtffbnqU16mlsc6CAkxwedUH7yqLGEoSqAleTFUDim39/ pFWPu41Rl/s4N6btf3EnP+t9K4MYCk8a+6J8m2DQl7Vu2dCh+5KsrH7O3 G/6GrdwjeqYzZi59ZP2s9gyXr0bAV4jVmeFQFNuoGXmq9zGr5Y4dvCbfM XGg5vyKyWdUowvjcdwLPOVeLCyDeZErAxV9QuBHp9ndAQGkd7ySQt2wLI A==; X-IronPort-AV: E=McAfee;i="6600,9927,10988"; a="13125380" X-IronPort-AV: E=Sophos;i="6.06,170,1705392000"; d="scan'208";a="13125380" Received: from orviesa009.jf.intel.com ([10.64.159.149]) by fmvoesa103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Feb 2024 03:44:28 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.06,170,1705392000"; d="scan'208";a="4469669" Received: from ijarvine-desk1.ger.corp.intel.com (HELO localhost) ([10.246.48.18]) by orviesa009-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Feb 2024 03:44:26 -0800 From: =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= Date: Mon, 19 Feb 2024 13:44:18 +0200 (EET) To: Vishnu Sankar cc: Hans de Goede , platform-driver-x86@vger.kernel.org, LKML , Mark Pearson , vsankar@lenovo.com Subject: Re: [PATCH v2 2/2] platform/x86: thinkpad_acpi: Fix to correct wrong temp reporting on some ThinkPads In-Reply-To: <20240215134102.25118-2-vishnuocv@gmail.com> Message-ID: References: <20240215134102.25118-1-vishnuocv@gmail.com> <20240215134102.25118-2-vishnuocv@gmail.com> 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=US-ASCII On Thu, 15 Feb 2024, Vishnu Sankar wrote: > Added non-standard thermal register's support for some ThinkPads. > > Some of the Thinkpads use a non-standard ECFW which has different > thermal register addresses. This is a fix to correct the wrong temperature > reporting on those systems. > > Tested on Lenovo ThinkPad L13 Yoga Gen2. > > Suggested-by: Mark Pearson > Signed-off-by: Vishnu Sankar > @@ -6290,6 +6332,8 @@ static int thermal_get_sensors(struct ibm_thermal_sensors_struct *s) > > if (thermal_read_mode == TPACPI_THERMAL_TPEC_16) > n = 16; > + else if (thermal_read_mode == TPACPI_THERMAL_TPEC_12) > + n = 12; > > for (i = 0 ; i < n; i++) { > res = thermal_get_sensor(i, &s->temp[i]); Thanks. Both patches now applied. I did some further cleanups into the first patch (which I had requested you to do :-(). This 2nd patch didn't apply cleanly on top of for-next but I handled the conflict for you this time, in future, please try to base your work on top of for-next branch. -- i.