Re: [PATCH v3 4/4] power: supply: Introduce Qualcomm PMIC GLINK power supply

From: Neil Armstrong
Date: Mon Jan 30 2023 - 09:32:15 EST


On 30/01/2023 05:20, Bjorn Andersson wrote:
From: Bjorn Andersson <bjorn.andersson@xxxxxxxxxx>

The PMIC GLINK service, running on a coprocessor of modern Qualcomm
platforms, deals with battery charging and fuel gauging, as well as
reporting status of AC and wireless power supplies.

As this is just one of the functionalities provided by the PMIC GLINK
service, this power supply driver is implemented as an auxilirary bus
driver, spawned by the main "pmic glink" driver when the PMIC GLINK
service is detected.

Signed-off-by: Bjorn Andersson <bjorn.andersson@xxxxxxxxxx>
Tested-by: Konrad Dybcio <konrad.dybcio@xxxxxxxxxx> # SM8350 PDX215
Signed-off-by: Bjorn Andersson <quic_bjorande@xxxxxxxxxxx>
---

Changes since v2:
- None

drivers/power/supply/Kconfig | 9 +
drivers/power/supply/Makefile | 1 +
drivers/power/supply/qcom_battmgr.c | 1421 +++++++++++++++++++++++++++
3 files changed, 1431 insertions(+)
create mode 100644 drivers/power/supply/qcom_battmgr.c


<snip>


Reviewed-by: Neil Armstrong <neil.armstrong@xxxxxxxxxx>

Devices doesn't have a battery, but it behaved as expected and values were coherent:
Tested-by: Neil Armstrong <neil.armstrong@xxxxxxxxxx> # on SM8550-MTP & SM8450-HDK