Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 CBE303B774B; Mon, 17 Aug 2026 15:20:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786980041; cv=none; b=HSTFwskNsIoVusL6XFnUeI+VawjmJvhQU60zCUWY6pgAOw4Bvek3H55ndbLQ3zfEICRSuUTnwdWNRfx+v9Um4hZVfnl46v3QN4PpiKzXyHDyLxa3Z+scCcF5fcr9TIK5PPZFxDzq4xmG2LWhuROcQTkW/Ik4VXbyQ9C22D+xVCA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786980041; c=relaxed/simple; bh=MqCndIrQo9lAY0ADIC9O/BUvj79hKu/S3TjlpcsHhv8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=CAwodGWkB68GExxH2AEWKZ7TJbHOFjrImh/hmK8utBTPLkDD0vYeiK9+YV86IQ1bfNmsdfeut6rumxhCVb1Birk13CtCFd0ynivHblD0YWj1AZaahNYsmEk07tqA/K1gsQA3KxT3zEkdOLCUyWyLpYvtYPI837FvJfL1gWK5S5U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=z2NfpS7d; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="z2NfpS7d" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2E8281F000E9; Mon, 17 Aug 2026 15:20:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1786980039; bh=7F71DAdToIzBt5rysaj/gSpBv4zyJi0xa5gBVwtw0a0=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=z2NfpS7dUR/lPUvVTkHZCAtW12V8SMnijeWx/C9LUzpTUSnhAW5jFd5gPUu6IR2sX nn/msq6HouR2XNR2JiA3O2td2/Z7uDmgcNVeSFBlcGvBeqtHtdCAR/Bc7vErbtB74/ MzmbCg94fT5H4wr4RXgJYPHfbNPqtNYNetNcgiy4= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Xu Rao , Sebastian Reichel Subject: [PATCH 6.1 434/609] power: supply: bq25890: fix the -10 C NTC lookup entry Date: Mon, 17 Aug 2026 15:32:10 +0200 Message-ID: <20260817132558.602892080@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260817132543.039278408@linuxfoundation.org> References: <20260817132543.039278408@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.1-stable review patch. If anyone has any objections, please let me know. ------------------ From: Xu Rao commit 160a783aa65b74782bc17cb874af1a6d3f5fba3c upstream. The TSPCT lookup table is monotonically decreasing except for ADC code 121, where the sequence reads -9.0 C, -1.0 C, -12.0 C. This makes the reported battery temperature jump upward by eight degrees for one code and then downward by eleven degrees for the next code. The entry is a missing zero: use -10.0 C so the sequence remains monotonic between -9.0 C and -12.0 C. Fixes: 9652c02428f3 ("power: bq25890: add POWER_SUPPLY_PROP_TEMP") Cc: stable@vger.kernel.org Signed-off-by: Xu Rao Link: https://patch.msgid.link/0619C8BF15F43B7C+20260723065444.1796002-1-raoxu@uniontech.com Signed-off-by: Sebastian Reichel Signed-off-by: Greg Kroah-Hartman --- drivers/power/supply/bq25890_charger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/power/supply/bq25890_charger.c +++ b/drivers/power/supply/bq25890_charger.c @@ -310,7 +310,7 @@ static const u32 bq25890_tspct_tbl[] = { 145, 140, 130, 120, 115, 110, 100, 90, 80, 70, 60, 50, 40, 30, 20, 10, 0, -10, -20, -30, -40, -60, -70, -80, - -90, -10, -120, -140, -150, -170, -190, -210, + -90, -100, -120, -140, -150, -170, -190, -210, }; #define BQ25890_TSPCT_TBL_SIZE ARRAY_SIZE(bq25890_tspct_tbl)