diff options
| author | Cássio Gabriel <cassiogabrielcontato@gmail.com> | 2026-05-21 23:30:07 -0300 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-06-02 15:58:42 +0100 |
| commit | 2d90ecdfa32660f9f4f4b36440755c5388690209 (patch) | |
| tree | 36547ba7f832faef84c5e7485adc20a0a3005ff3 /include/linux/timerqueue.h | |
| parent | cab82caa2d37124659637ffc1eed2d1c4f231fbc (diff) | |
ASoC: rockchip: i2s: Use managed hclk and runtime PM cleanup
The Rockchip I2S driver mixes devm-managed probe resources with manual
runtime PM and hclk cleanup. This leaves the remove path doing runtime PM
shutdown and clock disable before devm-managed ASoC and PCM resources are
released.
Keep the bus clock enabled for the device lifetime with
devm_clk_get_enabled(), and move the runtime PM teardown into devres so the
unwind order matches the managed registrations. This also removes the
remove callback, which only existed for cleanup.
Use a devm action for the final runtime suspend and register it before the
managed runtime PM action, so teardown disables runtime PM before forcing
the device into the suspended state.
Signed-off-by: Cássio Gabriel <cassiogabrielcontato@gmail.com>
Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Link: https://patch.msgid.link/20260521-asoc-rockchip-i2s-devm-cleanup-v1-1-9319bd781393@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions
