remoteproc: ingenic: Move clock handling to prepare/unprepare callbacks
authorMathieu Poirier <mathieu.poirier@linaro.org>
Tue, 30 Jun 2020 16:31:17 +0000 (10:31 -0600)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Wed, 1 Jul 2020 23:05:18 +0000 (16:05 -0700)
commit4605ad8f4581981787ed22b3a755209c8fe5aa24
tree19d778c599e087606aeb4cb9c233380a5f48d8d9
parentb3a9e3b9622ae10064826dccb4f7a52bd88c7407
remoteproc: ingenic: Move clock handling to prepare/unprepare callbacks

This patch moves clock related operations to the remoteproc prepare()
and unprepare() callbacks so that the PM runtime framework doesn't
have to be involved needlessly.  This provides a simpler approach and
requires less code.

Based on the work from Paul Cercueil published here:
https://lore.kernel.org/linux-remoteproc/20191116170846.67220-4-paul@crapouillou.net/

Reviewed-by: Suman Anna <s-anna@ti.com>
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Link: https://lore.kernel.org/r/20200630163118.3830422-2-mathieu.poirier@linaro.org
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/remoteproc/ingenic_rproc.c