diff options
| author | Sebastian Andrzej Siewior <bigeasy@linutronix.de> | 2026-06-17 09:55:28 +0300 |
|---|---|---|
| committer | Jassi Brar <jassisinghbrar@gmail.com> | 2026-06-21 05:18:38 +0300 |
| commit | 1f602619e408b6e9655ee76656a2a5ab6e89c5e4 (patch) | |
| tree | 673e575df4f07e94e7e20259c5da4b14c0b1a552 /scripts/Makefile.thinlto | |
| parent | 5ccea7eacb7786c358833634f45700365f6c1d99 (diff) | |
| download | linux-1f602619e408b6e9655ee76656a2a5ab6e89c5e4.tar.xz | |
mailbox: imx: Use devm_pm_runtime_enable()
sashiko complained about early usage of the device while probe isn't
completed. This can be mitigated by delaying the pm_runtime_enable()
into the removal path instead doing it early. This ensures that in an
error case the device is removed (and imx_mu_shutdown()) before
pm_runtime_disable() so we don't have to do this manually.
For the order to work, lets move devm_mbox_controller_register() until
after the pm-runtime part. So the reverse order will be mbox-controller
removal followed by disabling pm runtime.
Use devm_pm_runtime_enable(), remove manual pm_runtime_disable()
invocations and move the pm_runtime handling in probe before
devm_mbox_controller_register().
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Jassi Brar <jassisinghbrar@gmail.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
