Commit e9455970 authored by Priit Laes's avatar Priit Laes Committed by Xie XiuQi
Browse files

drm/sun4i: hdmi: Fix usage of TMDS clock



[ Upstream commit 5e1bc251 ]

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: 9c568101 ("drm/sun4i: Add HDMI support")
Signed-off-by: default avatarPriit Laes <priit.laes@paf.com>
[Maxime: Moved the TMDS clock enable earlier]
Signed-off-by: default avatarMaxime Ripard <maxime.ripard@bootlin.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190122073232.7240-1-plaes@plaes.org


Signed-off-by: default avatarSasha Levin <sashal@kernel.org>

Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent 82b9d95c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment