diff options
| author | Linmao Li <lilinmao@kylinos.cn> | 2026-07-28 17:16:22 +0800 |
|---|---|---|
| committer | Jassi Brar <jassisinghbrar@gmail.com> | 2026-08-15 15:41:12 -0500 |
| commit | ded48fcbdc1e3ed1dc8e1974b7fe9639fcea6dd6 (patch) | |
| tree | d1029feaa2387b840cb38dea1ce5e27f2a82f183 /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | fc4f2f99530298a1739226947aa76525142d421d (diff) | |
mailbox: rockchip: disable pclk on probe failure and unbind
rockchip_mbox_probe() enables the peripheral clock and then keeps going.
None of the later failure paths - platform_get_irq(),
devm_request_threaded_irq() and devm_mbox_controller_register() - disables
it again. The driver has no remove callback either, so the clock also stays
prepared and enabled once the device is unbound, and its enable count keeps
growing over bind/unbind cycles.
Use devm_clk_get_enabled() to tie disabling and unpreparing the clock to
the device lifetime. It is registered before the interrupts and the mailbox
controller, so devres releases it after both are gone.
While rewriting the error path, switch it to dev_err_probe() so that a
deferred probe is not reported as an error.
Fixes: f70ed3b5dc8b ("mailbox: rockchip: Add Rockchip mailbox driver")
Signed-off-by: Linmao Li <lilinmao@kylinos.cn>
Signed-off-by: Jassi Brar <jassisinghbrar@gmail.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions
