From mboxrd@z Thu Jan 1 00:00:00 1970 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 81D43293458; Fri, 7 Aug 2026 14:51:17 +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=1786114281; cv=none; b=El1Rb9Y4Gp95FuWesUk+Ty9jKZ31ONAXcLaQmvjzM4ggzw8O6nCUF+BhG4UHfnhrvi5bzv6rIBP5cpFkcUCnifiLvnidE5VGDued0AeBCi5BHYS2Zd9IZKuk2wJAeEYFU2VaDcpsFrNm9m8LozTWi7SShyuk8VsbyDSK0MJ3NAo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786114281; c=relaxed/simple; bh=FgLVBjeLFs6Jng1FxxDnZDKG0BfrjTAOdsWkYZLx+7E=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=kn5ARYxe/f+PIJxnKp4qXf+k92vs7dB8ju2a123ndL+8tW4UxAgeN0ox0WR+3duvzPwMlebuVGoDdXR+SklCVo57NgKpEoKx6HPi88afNGVvkb9RuLXk6BbkBpNZ2xoWI0cqXyg4wr6zzoU/ofmUmgKKltVVMIWHrg7MdPntqxE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=EeMA7ECK; 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="EeMA7ECK" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 318AC1F000E9; Fri, 7 Aug 2026 14:51:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1786114277; bh=675pH44o3LZlPWbWTJGxOZLgQuNs5Tu0B/7mFeAbw+A=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=EeMA7ECKmxiByfd7UoHdAFSXCKuPBdzUcd5SCFm1izbxBpM90J72lMcs+8mTGk2Pt eDtnNcYSJc4fDPagS2jRQLVUSa2YrQLDrGTCg2CiUW0sHHvLVY0K8gqJjgRVenfnvc a8rkDmzidbCupPwxSPXfAb7J40RCNH/OvTWtpiac= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Xu Rao , Sebastian Reichel Subject: [PATCH 6.12 206/337] power: supply: bq25890: fix the -10 C NTC lookup entry Date: Fri, 7 Aug 2026 16:36:49 +0200 Message-ID: <20260807143423.021969995@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260807143418.516897842@linuxfoundation.org> References: <20260807143418.516897842@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.12-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 @@ -320,7 +320,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)