]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/sun4i: hdmi: Fix usage of TMDS clock
authorPriit Laes <priit.laes@paf.com>
Tue, 22 Jan 2019 07:32:32 +0000 (09:32 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 5 Mar 2019 16:59:39 +0000 (17:59 +0100)
commit7ea5bbebc2a3565e3520e6a1017add36ceb4ed0c
treec3d3499e84ad4b18700da13c00cc0b874c942f79
parent33d4c7d638ed3af73253d27fac4ae2e8ee42df7f
drm/sun4i: hdmi: Fix usage of TMDS clock

[ Upstream commit 5e1bc251cebc84b41b8eb5d2434e54d939a85430 ]

Although TMDS clock is required for HDMI to properly function,
nobody called clk_prepare_enable(). This fixes reference counting
issues and makes sure clock is running when it needs to be running.

Due to TDMS clock being parent clock for DDC clock, TDMS clock
was turned on/off for each EDID probe, causing spurious failures
for certain HDMI/DVI screens.

Fixes: 9c5681011a0c ("drm/sun4i: Add HDMI support")
Signed-off-by: Priit Laes <priit.laes@paf.com>
[Maxime: Moved the TMDS clock enable earlier]
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190122073232.7240-1-plaes@plaes.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c