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)
commit38ee474fc63f79f66df1bed06c8c952e8258ea90
tree27216a1b91f467e69d165ffef6a5cc430f7d0b7f
parentc0fd208ee3bc1020fd24cf986aec604374440ce4
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