[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <wq7yuqborkkup6mhipf6pnarsc5p7t4fivwoi2pxmrin3wlzpe@apkeapewo6fq>
Date: Mon, 11 Aug 2025 09:41:22 -0500
From: Bjorn Andersson <andersson@...nel.org>
To: chris.ruehl@...ys.com.hk
Cc: sre@...nel.org, linux-arm-msm@...r.kernel.org,
linux-pm@...r.kernel.org, linux-kernel@...r.kernel.org, ruehlchr@...il.com
Subject: Re: [PATCH] msm: arm: qcom battery manager add OOI chemistry
On Mon, Aug 11, 2025 at 01:10:26PM +0200, chris.ruehl@...ys.com.hk wrote:
> From: Christopher Ruehl <chris.ruehl@...ys.com.hk>
>
The subject prefix should be "power: supply: qcom_battmgr: " to match
other changes in this driver. (see git log --oneline)
Regards,
Bjorn
> 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@...ys.com.hk>
> ---
> 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
>
Powered by blists - more mailing lists