Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795049033; b=gSzUO/eSVR56jRMyljfP1cW9k70iw7e1yMler5HIxnq8dQmKdpbwV5IYkypdnVxTTvid 90fAUv0Xdk6Xkmk6X8mwBtiHoLxo6SMqx+rS2MdoUWsi3R/bIN8UUve04n3PTh4xSseXr osx9E1sV0/nWQEXfudXniBR3LX2Bs2cmPx1ynXhKXNOKdpdFlu5bJUwaYgHgEHYVdfurC QNi217ZglPBGnbDiJW2/MaJffnd8oOgycjDPaaDCSb4q+zgbJ8zE2f8094a1tl/VxQs/B HgWGrcekooKh2jPeTaP9ppyMxWOEOHdw028rLTWAKQacDWCgmfjTAj6suHctIfS2vDA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795049033; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:User-Agent:X-stable:X-Patchwork-Hint: MIME-Version:Content-Transfer-Encoding; bh=XN3pk4c09BL2NjU9jZ4/F9zSlDYjRLNTTgJTKyv8Ngs=; b=bL+kvKqIMPaAWWYlVAe+ELBf3AmGq8NdC5drotfmMS9DD/wD7cgix6qmJfQb3PE64mJ0 XMpSF7qf1/4CSNpxddrkFAZM7aLt2KCKourZIqOS3SUIMhVUB5YAUFRiThY3tjx1QEChV ndL1xUghaFZsAHaZyH15+8wOHorgFkgwYkHZNFlwIV3fp3PvSVPrIv6V/KQTI5zyFygoL qFXnUX9lEV2UU9udPyPH+X+9E+S6QzyZpmCZYrVSMAmlS1j3SmGNRskHcjdNdK7w9mCpO IrhYcTBH81jLgRUbWnXuKPOPLfi67rzFTIXoS8yKbVnJ+M7wgTfVaA/VmzMXcfafYKA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=DmXV+l+0; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4C990606A32A; Thu, 19 Nov 2026 00:43:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=DmXV+l+0 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9F5481F000C4; Thu, 19 Nov 2026 00:43:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795049033; bh=XN3pk4c09BL2NjU9jZ4/F9zSlDYjRLNTTgJTKyv8Ngs=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=DmXV+l+05+kMbl8oWsYguM5ZAvdghZTn0PD9JIb+Sxf8NmO8+wQca9IIwXqZ2Dl2y zrp/YrkUWlWec1AuUxK308uI0BnDha2IykPpgFp1HMYqBvdpbcOl6BxUZgQL08eI34 tYRpPuswgYFdoxC175iFvuVnuRVuz8Lh5QKsZPRk= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Linus Walleij , Sebastian Reichel , Sasha Levin Subject: [PATCH 6.1 2207/2857] power: supply: ab8500: Preserve battery termination current Date: Wed, 18 Nov 2026 15:54:01 +0100 Message-ID: <20261118150320.888154995@linuxfoundation.org> X-Mailer: git-send-email 2.56.0 In-Reply-To: <20261118150201.293410965@linuxfoundation.org> References: <20261118150201.293410965@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore X-Mailing-List: patches@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.1-stable review patch. If anyone has any objections, please let me know. ------------------ From: Linus Walleij [ Upstream commit 3b33eda4067494658d51db0792377fef98787e3f ] The battery-info parser uses a negative value for an unspecified termination current. Testing the value as a boolean instead replaces every valid positive current from the battery description with 200 mA. Apply the default only when the property is unspecified so batteries retain their described charging termination current. Fixes: 9c20899da46b ("power: supply: ab8500: Standardize termination current") Assisted-by: LLM Signed-off-by: Linus Walleij Link: https://patch.msgid.link/20260916-ab8500-charging-v1-6-e986ed321cc6@kernel.org Signed-off-by: Sebastian Reichel Signed-off-by: Sasha Levin --- drivers/power/supply/ab8500_bmdata.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/power/supply/ab8500_bmdata.c b/drivers/power/supply/ab8500_bmdata.c index 3e6ea22372b2d..0a6ea935fdc0f 100644 --- a/drivers/power/supply/ab8500_bmdata.c +++ b/drivers/power/supply/ab8500_bmdata.c @@ -174,7 +174,7 @@ int ab8500_bm_of_probe(struct power_supply *psy, if (bi->constant_charge_voltage_max_uv < 0) bi->constant_charge_voltage_max_uv = 4100000; - if (bi->charge_term_current_ua) + if (bi->charge_term_current_ua < 0) /* Charging stops when we drop below this current */ bi->charge_term_current_ua = 200000; -- 2.53.0