diff options
| author | 2026-09-23 15:12:47 +0900 | |
|---|---|---|
| committer | 2026-09-23 14:22:47 +0200 | |
| commit | ef8caf5d2784dabe090814e01694a57209273ed5 (patch) | |
| tree | c92661af00067eee7f86ab45e5f94dbc76fee520 /scripts/Makefile.thinlto | |
| parent | ASoC: codecs: da7218: Fix devm resource leaks across card bind/unbind (diff) | |
ASoC: codecs: tlv320aic32x4: Fix clock leak from runtime callbacks
component->dev is the underlying I2C/SPI device. The driver acquired
its codec clocks with devm_clk_get()/devm_clk_bulk_get(component->dev,
...) from the DAI set_sysclk runtime callback, from set_bias_level and
from the component .probe. Because devres on component->dev is only
released when the platform device is removed, each card bind/unbind
(and, for set_sysclk, each runtime invocation) leaked a fresh clock
reference.
Acquire all codec clocks once in the bus probe with a single
devm_clk_bulk_get() into the private struct, and have the runtime
callbacks and both component probes reuse those stored references.
Signed-off-by: Chancel Liu <chancel.liu@nxp.com>
Link: https://patch.msgid.link/20260923061305.4041197-4-chancel.liu@oss.nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
