[PATCH v1] power: supply: qcom_battmgr: add OOI chemistry

chris.ruehl@gtsys.com.hk posted 1 patch 1 month, 3 weeks ago
drivers/power/supply/qcom_battmgr.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
[PATCH v1] power: supply: qcom_battmgr: add OOI chemistry
Posted by chris.ruehl@gtsys.com.hk 1 month, 3 weeks ago
From: Christopher Ruehl <chris.ruehl@gtsys.com.hk>

The ASUS S15 xElite model report the Li-ion battery with an OOI, hence this
update the detection and return the appropriate type.

Signed-off-by: Christopher Ruehl <chris.ruehl@gtsys.com.hk>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>

---
Changes v1:
 - Update subject to match other changes in this driver
---
 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/qcom_battmgr.c
index 99808ea9851f..fdb2d1b883fc 100644
--- a/drivers/power/supply/qcom_battmgr.c
+++ b/drivers/power/supply/qcom_battmgr.c
@@ -982,7 +982,8 @@ static void qcom_battmgr_sc8280xp_strcpy(char *dest, const char *src)
 
 static unsigned int qcom_battmgr_sc8280xp_parse_technology(const char *chemistry)
 {
-	if (!strncmp(chemistry, "LIO", BATTMGR_CHEMISTRY_LEN))
+	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))
 		return POWER_SUPPLY_TECHNOLOGY_LIPO;
-- 
2.47.2
Re: [PATCH v1] power: supply: qcom_battmgr: add OOI chemistry
Posted by Sebastian Reichel 4 weeks ago
On Mon, 11 Aug 2025 17:22:09 +0200, chris.ruehl@gtsys.com.hk wrote:
> The ASUS S15 xElite model report the Li-ion battery with an OOI, hence this
> update the detection and return the appropriate type.
> 
> 

Applied, thanks!

[1/1] power: supply: qcom_battmgr: add OOI chemistry
      commit: fee0904441325d83e7578ca457ec65a9d3f21264

Best regards,
-- 
Sebastian Reichel <sebastian.reichel@collabora.com>