diff options
| author | Chancel Liu <chancel.liu@nxp.com> | 2026-09-13 19:15:27 +0900 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-09-14 14:57:28 +0100 |
| commit | 644914663c9f9820310d0384f61c42a836d3ed3a (patch) | |
| tree | 37c6cf45fa9c6752e28ab86ee6bf58bdec0a9cc5 /tools/perf/scripts/python/stackcollapse.py | |
| parent | b9e5343ba72a07a12d364e8ba6874e2a8fb617c6 (diff) | |
ASoC: wm8995: Register regulator notifiers from the bus probe
wm8995 requests its regulator supplies and registers the regulator
disable notifiers from the ASoC component probe, but the associated
devres cleanup is tied to the underlying I2C/SPI device.
These resources are only mishandled when the sound card is unregistered
and re-registered while the bus device stays bound. On that path the
component probe runs again and re-registers the same notifier_block on
the still-registered regulator notifier chain and corrupts the chain.
Move the supply request and notifier registration into a helper,
wm8995_hw_init(), and call it from wm8995_i2c_probe() and
wm8995_spi_probe() so they run once per bus device bind. The regulator
enable and the register accesses that need the component stay in
wm8995_probe().
Signed-off-by: Chancel Liu <chancel.liu@nxp.com>
Link: https://patch.msgid.link/20260913101531.2787654-3-chancel.liu@oss.nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
