[PATCH v6 0/2] power: supply: Add several features support in qcom-battmgr driver

Fenglin Wu via B4 Relay posted 2 patches 1 week, 6 days ago
arch/arm64/boot/dts/qcom/x1-crd.dtsi         |  7 +++++++
arch/arm64/boot/dts/qcom/x1e80100-pmics.dtsi | 20 ++++++++++++++++++++
drivers/power/supply/qcom_battmgr.c          |  5 ++++-
3 files changed, 31 insertions(+), 1 deletion(-)
[PATCH v6 0/2] power: supply: Add several features support in qcom-battmgr driver
Posted by Fenglin Wu via B4 Relay 1 week, 6 days ago
This continues the effort of updating changes which haven't been accepted
in patch v5. Including:
  1. Add nvmem cells for x1-crd device to enable reading back charger
     control threshold.
  2. Add handling for notification 0x83 to avoid unexpected error messages.

Rebase the changes on linux-power-supply.git@for-next

Signed-off-by: Fenglin Wu <fenglin.wu@oss.qualcomm.com>
---
Changes in v6:
- Dropped patch[1-7] as they have been accepted and present in linux-power-supply.git@for-next.
- Formatted the commit text for easy reading, and correct the bit positions for the additional
  notifications coming along with code 0x83.
- Added "Reported-by" trailer.
- Link to v5: https://lore.kernel.org/r/20250917-qcom_battmgr_update-v5-0-270ade9ffe13@oss.qualcomm.com

Changes in v5:
- Added additional explanation for "state_of_health" in ABI document as Sebastian suggested.
- Removed "Tested-by" trailers in the patches unrelated to charge control feature.
- Updated the copyright statement in qcom_battmgr.c according to the latest guidelines.
- In [PATCH v4 5/8], add "X1E80100" in the "if" variant checks to ensure
  the correctness even if only this patch is applied.
- Format the entries for "nvmem-cells" DT properties.
- Add a new change at last to fix the error messages for unsupported notifications
- Link to v4: https://lore.kernel.org/r/20250915-qcom_battmgr_update-v4-0-6f6464a41afe@oss.qualcomm.com

---
Fenglin Wu (2):
      arm64: dts: qcom: x1e80100-crd: Add charge limit nvmem
      power: supply: qcom_battmgr: handle charging state change notifications

 arch/arm64/boot/dts/qcom/x1-crd.dtsi         |  7 +++++++
 arch/arm64/boot/dts/qcom/x1e80100-pmics.dtsi | 20 ++++++++++++++++++++
 drivers/power/supply/qcom_battmgr.c          |  5 ++++-
 3 files changed, 31 insertions(+), 1 deletion(-)
---
base-commit: cc3e883a06251ba835f15672dbe8724f2687971b
change-id: 20250918-qcom_battmgr_update_new-df15b34148ec

Best regards,
-- 
Fenglin Wu <fenglin.wu@oss.qualcomm.com>
Re: (subset) [PATCH v6 0/2] power: supply: Add several features support in qcom-battmgr driver
Posted by Sebastian Reichel 1 week, 5 days ago
On Fri, 19 Sep 2025 11:18:49 +0800, Fenglin Wu wrote:
> This continues the effort of updating changes which haven't been accepted
> in patch v5. Including:
>   1. Add nvmem cells for x1-crd device to enable reading back charger
>      control threshold.
>   2. Add handling for notification 0x83 to avoid unexpected error messages.
> 
> Rebase the changes on linux-power-supply.git@for-next
> 
> [...]

Applied, thanks!

[2/2] power: supply: qcom_battmgr: handle charging state change notifications
      commit: 41307ec7df057239aae3d0f089cc35a0d735cdf8

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