]> git.baikalelectronics.ru Git - kernel.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)
committerMaxime Ripard <maxime.ripard@bootlin.com>
Tue, 22 Jan 2019 09:16:22 +0000 (10:16 +0100)
commit50b83f3e44edbf862c814b1d020c7f1fc41f34cb
treee4484e09492888ad8bc2be240562a3e7475cc3f5
parent607d144b83b16847bc18fb058d4d51857c4ff9c6
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: fae50b4cec20 ("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