OSDN Git Service

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)
committerMaxime Ripard <maxime.ripard@bootlin.com>
Tue, 22 Jan 2019 09:16:22 +0000 (10:16 +0100)
commit5e1bc251cebc84b41b8eb5d2434e54d939a85430
treee4484e09492888ad8bc2be240562a3e7475cc3f5
parent49a57857aeea06ca831043acbb0fa5e0f50602fd
drm/sun4i: hdmi: Fix usage of TMDS clock

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
drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c