drm/vc4: prepare for CEC support 10/148510/2
authorHans Verkuil <hans.verkuil@cisco.com>
Sun, 16 Jul 2017 10:48:03 +0000 (12:48 +0200)
committerInki Dae <inki.dae@samsung.com>
Fri, 8 Sep 2017 05:05:16 +0000 (14:05 +0900)
commit0f9fdb1abfb9a3dde13e0946d2c8f18ae9722d33
tree058d739106aa9722e6c93edcfe369d87f679e0f0
parentabb90ef09941f48983a68cd6009eee0841e5d318
drm/vc4: prepare for CEC support

In order to support CEC the hsm clock needs to be enabled in
vc4_hdmi_bind(), not in vc4_hdmi_encoder_enable(). Otherwise you wouldn't
be able to support CEC when there is no hotplug detect signal, which is
required by some monitors that turn off the HPD when in standby, but keep
the CEC bus alive so they can be woken up.

The HDMI core also has to be enabled in vc4_hdmi_bind() for the same
reason.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Eric Anholt <eric@anholt.net>
Link: https://patchwork.freedesktop.org/patch/msgid/20170716104804.48308-3-hverkuil@xs4all.nl
(cherry picked from commit 10ee275cb12f884ce09bed69ea387eae73d7fece)

[inki.dae: apply from rpi3-4.9.y]
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Change-Id: I1b4e299411859c5e8478a93144e7f9496a4f578d
drivers/gpu/drm/vc4/vc4_hdmi.c