]> git.baikalelectronics.ru Git - kernel.git/commit
remoteproc: Add support for runtime PM
authorPaul Cercueil <paul@crapouillou.net>
Fri, 15 May 2020 10:43:38 +0000 (12:43 +0200)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Mon, 18 May 2020 23:53:27 +0000 (16:53 -0700)
commit6c969d3858d86a74145d09d41b668780c492bd15
tree734181e417fa4bab1d3df73936a7e0979effaf78
parent3a3c8d10742d2933236ba1d1ca9aaa7c1d81df69
remoteproc: Add support for runtime PM

Call pm_runtime_get_sync() before the firmware is loaded, and
pm_runtime_put() after the remote processor has been stopped.

Even though the remoteproc device has no PM callbacks, this allows the
parent device's PM callbacks to be properly called.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Link: https://lore.kernel.org/r/20200515104340.10473-3-paul@crapouillou.net
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/remoteproc/remoteproc_core.c