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 C7B2922D785; Sat, 12 Sep 2026 13:04:05 +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=1789218246; cv=none; b=G/9u6bAtrvr5Ht3cgRTOmhxMvlCwhWSrSFFddP+L/VLux5CSHKH87Ozw3JdOC0JfFpnVJ/ix/TYk/76jIDNBB/o8jOBWQY0OurFObm2lxI67ANDbv1WkGFE3GAsq8PXEJsBiGUSWZ4iTtqA1ONx8NJXKEP69QMWW8tS3/wFBAGs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789218246; c=relaxed/simple; bh=KqgOJbCgOS50qmS2q7hAhmeDVHrwYsF7i6QkpP0xU/0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=DEKkdH/kbP8hYYCSx4GuITErcJePugl/MfU7W8HFdM7mJHKgOcYokWmCnPtN1WZ0e4sZy+Q5GyQN3lD0qk+dT8qV77QmdzBvRGZPGDW8iNaX45nPcBU58fnUu4tBJFT8jLlm5XSYNYVilXEagwDQ8j2YxYblIpUrN5GlTmqGwEw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=kn+dKSe/; 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="kn+dKSe/" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9087B1F000FF; Sat, 12 Sep 2026 13:04:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789218245; bh=TMlBRCMM5TenHsajlkzh87JGNmqyxxMSgQSQmKbukhI=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=kn+dKSe/dKciFx5CdJ6EenbchD1SPy7BtxZcqKfZIK78eMtWAefy87fBQkUF3GP+/ e8ln9hh/Kz8gP8X+OH7y93jmbpZiOdRd59+Ig9JGzgzoWjGTFQ7ahsJGoZ3hjUc2Lf a47xVYeLsIXwi/Kjgk7o1OpHK2xczv+pP2BqkjA4= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Henrik Grimler , Sebastian Reichel , Sasha Levin Subject: [PATCH 6.12 1103/1376] power: supply: bq27xxx: bq28z610: fix invalid AverageEnergy address Date: Sat, 12 Sep 2026 08:58:49 +0200 Message-ID: <20260912065632.142243760@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260912065607.535295758@linuxfoundation.org> References: <20260912065607.535295758@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: Henrik Grimler [ Upstream commit e9387e9ab5121f330d313afb90430c02200f9782 ] bq28z610 currently uses the AveragePower reg, 0x22, for reading both AveragePower and AvailableEnergy. The technical reference manual does not mention AvailableEnergy, and it does not make sense to read a cumulative, always positive, property like AvailableEnergy from a rate property like AveragePower. Set REG_AE as invalid to fix it. Fixes: 707d678a5c7c ("power: supply: bq27xxx_battery: Add the BQ28z610 Battery monitor") Signed-off-by: Henrik Grimler Link: https://patch.msgid.link/20260811-bq27z746-v1-4-3a4fa38205cc@axis.com Signed-off-by: Sebastian Reichel Signed-off-by: Sasha Levin --- drivers/power/supply/bq27xxx_battery.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/power/supply/bq27xxx_battery.c b/drivers/power/supply/bq27xxx_battery.c index b9e1c6c80f0de..34a230e54cfea 100644 --- a/drivers/power/supply/bq27xxx_battery.c +++ b/drivers/power/supply/bq27xxx_battery.c @@ -510,7 +510,7 @@ static u8 [BQ27XXX_REG_RC] = 0x10, [BQ27XXX_REG_FCC] = 0x12, [BQ27XXX_REG_CYCT] = 0x2a, - [BQ27XXX_REG_AE] = 0x22, + [BQ27XXX_REG_AE] = INVALID_REG_ADDR, [BQ27XXX_REG_SOC] = 0x2c, [BQ27XXX_REG_DCAP] = 0x3c, [BQ27XXX_REG_AP] = 0x22, -- 2.53.0