[PATCH v3 0/2] mfd: twl-core: Fix dangling twl_priv on teardown and probe failure
From: Lee Jones
Date: Thu Nov 19 2026 - 14:50:22 EST
These issues were reported by Sashiko.
Patch 1 is the minimal, Stable-suitable fix from v2 (13/27), which was
skipped when the rest of that series was applied due to a collision with
"mfd: twl-core: Unregister the auxiliary platform device on unbind".
Patch 2 is the follow-up suggested by Andreas, converting the manual
twl_priv reset to a devres action.
v2 => v3:
- Rebased patch 1 onto for-mfd-next
- Sent the previously standalone devres follow-up as patch 2
v2 (patch 1): https://lore.kernel.org/all/20261027093306.2812695-14-lee@xxxxxxxxxx/
v1 (patch 2): https://lore.kernel.org/all/20261105110332.1874728-1-lee@xxxxxxxxxx/
Cc: Aaro Koskinen <aaro.koskinen@xxxxxx>
Cc: Andreas Kemnade <andreas@xxxxxxxxxxxx>
Cc: Kai Svahn <kai.svahn@xxxxxxxxx>
Cc: Kevin Hilman <khilman@xxxxxxxxxxxx>
Cc: linux-omap@xxxxxxxxxxxxxxx
Cc: mfd@xxxxxxxxxxxxxxx
Cc: Peter Ujfalusi <peter.ujfalusi@xxxxxx>
Cc: Roger Quadros <rogerq@xxxxxxxxxx>
Cc: Samuel Ortiz <sameo@xxxxxxxxxxxxxxx>
Cc: syed khasim <x0khasim@xxxxxx>
Cc: Tony Lindgren <tony@xxxxxxxxxxx>
Lee Jones (2):
mfd: twl-core: Clear twl_priv pointer on teardown and probe failure
mfd: twl-core: Reset twl_priv using devm_add_action_or_reset()
drivers/mfd/twl-core.c | 20 +++++++++++++++++---
1 file changed, 17 insertions(+), 3 deletions(-)
--
2.56.1.750.gf70dc682cf-goog