Linux Power Management development
 help / color / mirror / Atom feed
* [PATCH v2 0/2] power: supply: bq25630: Improve hardware setup
@ 2026-07-28  2:45 Linmao Li
  2026-07-28  2:45 ` [PATCH v2 1/2] power: supply: bq25630: Scope battery information to bq25630_setup() Linmao Li
  2026-07-28  2:45 ` [PATCH v2 2/2] power: supply: bq25630: Initialize hardware before exposing the power supply Linmao Li
  0 siblings, 2 replies; 5+ messages in thread
From: Linmao Li @ 2026-07-28  2:45 UTC (permalink / raw)
  To: Sebastian Reichel; +Cc: Waqar Hameed, linux-pm, linux-kernel, Linmao Li

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@kylinos.cn/

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-07-29 21:07 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-28  2:45 [PATCH v2 0/2] power: supply: bq25630: Improve hardware setup Linmao Li
2026-07-28  2:45 ` [PATCH v2 1/2] power: supply: bq25630: Scope battery information to bq25630_setup() Linmao Li
2026-07-29 21:07   ` Waqar Hameed
2026-07-28  2:45 ` [PATCH v2 2/2] power: supply: bq25630: Initialize hardware before exposing the power supply Linmao Li
2026-07-29 21:07   ` Waqar Hameed

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox