public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/7] regulator: fix OF node imbalance on reuse
@ 2026-04-08  7:30 Johan Hovold
  2026-04-08  7:30 ` [PATCH v2 1/7] regulator: bq257xx: fix OF node reference imbalance Johan Hovold
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: Johan Hovold @ 2026-04-08  7:30 UTC (permalink / raw)
  To: Mark Brown
  Cc: Liam Girdwood, Marek Vasut, Bartosz Golaszewski, Matthias Brugger,
	AngeloGioacchino Del Regno, Krzysztof Kozlowski,
	André Draszik, Douglas Anderson, linux-kernel, Johan Hovold

These drivers reuse the OF node of their parent multi-function device
but fail to take another reference to balance the one dropped by the
platform bus code when unbinding the MFD and deregistering the child
devices.
	        
Fix this by using the intended helper for reusing OF nodes.

Note that the first two patches will cause a trivial conflict with Doug's
series adding accessor functions for struct device flags which has now been
merged to the driver-core tree:

	https://lore.kernel.org/r/20260406232444.3117516-1-dianders@chromium.org

Johan


Changes in v2:
 - use the correct rk808 Fixes tag
 - merge all the fixes into one series


Johan Hovold (7):
  regulator: bq257xx: fix OF node reference imbalance
  regulator: rk808: fix OF node reference imbalance
  regulator: max77650: fix OF node reference imbalance
  regulator: mt6357: fix OF node reference imbalance
  regulator: s2dos05: fix OF node reference imbalance
  regulator: act8945a: fix OF node reference imbalance
  regulator: bd9571mwv: fix OF node reference imbalance

 drivers/regulator/act8945a-regulator.c  | 3 ++-
 drivers/regulator/bd9571mwv-regulator.c | 3 ++-
 drivers/regulator/bq257xx-regulator.c   | 3 +--
 drivers/regulator/max77650-regulator.c  | 2 +-
 drivers/regulator/mt6357-regulator.c    | 2 +-
 drivers/regulator/rk808-regulator.c     | 3 +--
 drivers/regulator/s2dos05-regulator.c   | 2 +-
 7 files changed, 9 insertions(+), 9 deletions(-)

-- 
2.52.0


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

end of thread, other threads:[~2026-04-08 16:56 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-08  7:30 [PATCH v2 0/7] regulator: fix OF node imbalance on reuse Johan Hovold
2026-04-08  7:30 ` [PATCH v2 1/7] regulator: bq257xx: fix OF node reference imbalance Johan Hovold
2026-04-08  7:30 ` [PATCH v2 2/7] regulator: rk808: " Johan Hovold
2026-04-08  7:30 ` [PATCH v2 3/7] regulator: max77650: " Johan Hovold
2026-04-08  7:30 ` [PATCH v2 4/7] regulator: mt6357: " Johan Hovold
2026-04-08  7:30 ` [PATCH v2 5/7] regulator: s2dos05: " Johan Hovold
2026-04-08  7:30 ` [PATCH v2 6/7] regulator: act8945a: " Johan Hovold
2026-04-08  7:30 ` [PATCH v2 7/7] regulator: bd9571mwv: " Johan Hovold
2026-04-08 16:56 ` [PATCH v2 0/7] regulator: fix OF node imbalance on reuse Mark Brown

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