From nobody Mon Feb 9 05:52:39 2026 Received: from out-174.mta0.migadu.com (out-174.mta0.migadu.com [91.218.175.174]) (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 1BE212BEFF6 for ; Sat, 17 Jan 2026 21:10:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.174 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768684216; cv=none; b=Q0jY90grUjp834ia5PUm1uGM5MTssgOObFRvn2nmHiiqMgIfQBrSwNSMSc+a1I5JoOqn04tlxRSf2noZ/RCntcDqwNbVpIwdyIS5PMtGXSeU1T9CmE2fkagan1UMjEuSkfKPfUS7O9l6AmjhLQwNfrilMaVYyCuDtbLIv+n16jw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768684216; c=relaxed/simple; bh=YpT/BPd8Y61sKHa2Mvbw6/FM1KBH+VQoatUnX2vBHR8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=jpft93V7JkyTm3KKXeff7vVwl4JFffm02amPJgG5kdGQS2cEhPgQpwc9u90uvls95HitPXhJgBbXrry7EkpHaQlLeVNFHpv3bcI8xIng/p7qd1VxbLX3O0csYkSuANcYUMBJZJ1XY7e0ukdhK2Oa2JUrnLArAZVpRWitpHJtwy8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=packett.cool; spf=pass smtp.mailfrom=packett.cool; dkim=pass (2048-bit key) header.d=packett.cool header.i=@packett.cool header.b=qdPOGE2B; arc=none smtp.client-ip=91.218.175.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=packett.cool Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=packett.cool Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=packett.cool header.i=@packett.cool header.b="qdPOGE2B" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=packett.cool; s=key1; t=1768684211; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=nhdEGm3g/qNY/ixZE/izgcRF9w5r47dc5v3DpaxVaqE=; b=qdPOGE2BGBqky1mMypjk5UaclmBdoDju5KUGDZcWGBUU0cUFpdolnvqFAan2HAg1sKsdEz 4wgbvlP1WIozCria+ZJSwrm5EnDheJOHavADjNixIHDBO6a5S+FcbNuCJQITr0xtzTkz6T QdmoOEFv0bG30+Yi3BX6MjI5tNRp1yQvnLkf76+3YpQOR7crHr5z9oB+qm1BQDxeOi7Rdp E3TQ/tVxCjyZlxKtrG6YD39pcQAbFQQM6li9ET7QsUUISJXv6n+qW92sZD2J48hDHKQq0h kRM9kPvHU3HTnmEsJs+V9KfwxVzE9ZSrZvh+2YmmjQl3WRPcJXYd0R8RAiV0bA== From: Val Packett To: Sebastian Reichel , Abel Vesa , Dmitry Baryshkov Cc: Val Packett , Sebastian Reichel , linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] power: supply: qcom_battmgr: Recognize "LiP" as lithium-polymer Date: Sat, 17 Jan 2026 18:09:24 -0300 Message-ID: <20260117210941.6219-1-val@packett.cool> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Migadu-Flow: FLOW_OUT Content-Type: text/plain; charset="utf-8" On the Dell Latitude 7455, the firmware uses "LiP" with a lowercase 'i' for the battery chemistry type, but only all-uppercase "LIP" was being recognized. Add the CamelCase variant to the check to fix the "Unknown battery technology" warning. Fixes: 202ac22b8e2e ("power: supply: qcom_battmgr: Add lithium-polymer entr= y") Signed-off-by: Val Packett --- drivers/power/supply/qcom_battmgr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/power/supply/qcom_battmgr.c b/drivers/power/supply/qco= m_battmgr.c index c8028606bba0..80e701c66434 100644 --- a/drivers/power/supply/qcom_battmgr.c +++ b/drivers/power/supply/qcom_battmgr.c @@ -1240,7 +1240,8 @@ static unsigned int qcom_battmgr_sc8280xp_parse_techn= ology(const char *chemistry if ((!strncmp(chemistry, "LIO", BATTMGR_CHEMISTRY_LEN)) || (!strncmp(chemistry, "OOI", BATTMGR_CHEMISTRY_LEN))) return POWER_SUPPLY_TECHNOLOGY_LION; - if (!strncmp(chemistry, "LIP", BATTMGR_CHEMISTRY_LEN)) + if (!strncmp(chemistry, "LIP", BATTMGR_CHEMISTRY_LEN) || + (!strncmp(chemistry, "LiP", BATTMGR_CHEMISTRY_LEN))) return POWER_SUPPLY_TECHNOLOGY_LIPO; =20 pr_err("Unknown battery technology '%s'\n", chemistry); --=20 2.51.2