[PATCH v2 0/2] power: supply: bq25630: Improve hardware setup
From: Linmao Li
Date: Mon Jul 27 2026 - 22:49:12 EST
This revision addresses the review comments from Waqar Hameed and
Sebastian Reichel on v1.
Patch 1 scopes the battery information to bq25630_setup(), its only
user. Patch 2 uses the new power_supply_desc::init callback, so that the
charger registers are programmed before the device is exposed to the
system.
Patch 2 depends on commit c1eb5905fdce ("power: supply: Add registration
init callback"), which is in the power-supply tree but not in linux-next
yet. The series is therefore based on power-supply/for-next.
Changes in v2:
- Move the battery information get/put pair into bq25630_setup().
- Remove the now-unused batinfo member from the driver data.
- Use power_supply_desc::init to complete the hardware setup before the
power supply is exposed.
- Split the changes into two patches.
Link to v1:
https://lore.kernel.org/linux-pm/20260727093738.2611185-1-lilinmao@xxxxxxxxxx/
Linmao Li (2):
power: supply: bq25630: Scope battery information to bq25630_setup()
power: supply: bq25630: Initialize hardware before exposing the power
supply
drivers/power/supply/bq25630_charger.c | 55 +++++++++++++-------------
1 file changed, 28 insertions(+), 27 deletions(-)
base-commit: c84ccde22d9d3070a9ee144e825270a7a784c570
--
2.25.1