]> git.baikalelectronics.ru Git - kernel.git/commit
drm/ingenic: ipu: Only enable clock when needed
authorPaul Cercueil <paul@crapouillou.net>
Thu, 30 Jul 2020 14:48:30 +0000 (16:48 +0200)
committerPaul Cercueil <paul@crapouillou.net>
Thu, 30 Jul 2020 16:19:57 +0000 (18:19 +0200)
commitaf08c716388a2a684443878fde4d4921e62feb1e
tree27216a1b91f467e69d165ffef6a5cc430f7d0b7f
parent529487347e8e3eda5c4c3595634c6f748555ed23
drm/ingenic: ipu: Only enable clock when needed

Instead of keeping the IPU clock enabled constantly, enable and disable
it on demand, when the IPU plane is used. That way, we won't use any
extra power when the IPU is not used.

v2: Explain the reason of this patch

Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Link: https://patchwork.freedesktop.org/patch/msgid/20200730144830.10479-4-paul@crapouillou.net
drivers/gpu/drm/ingenic/ingenic-ipu.c