]> 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)
commit09564528ada0d74ab74083f1e95d3cd00bffc800
treee4484e09492888ad8bc2be240562a3e7475cc3f5
parent2e63039be370d38b9714808dce41860dfe427301
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: 6c088b7a3095 ("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