Commit 1c928267 authored by Tomi Valkeinen's avatar Tomi Valkeinen Committed by Andrzej Hajda

drm/bridge: tc358767: disable only video stream in tc_stream_disable

Currently the code writes 0 to DP0CTL in tc_stream_disable(), which
disables the whole DP link instead of just the video stream. We always
disable the link and the stream together from tc_bridge_disable(), so
this doesn't cause any issues.

Nevertheless, fix this by only clearing VID_EN in tc_stream_disable to
stop the video stream while keeping the link enabled.
Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
Reviewed-by: default avatarAndrzej Hajda <a.hajda@samsung.com>
Signed-off-by: default avatarAndrzej Hajda <a.hajda@samsung.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190528082747.3631-12-tomi.valkeinen@ti.com
parent cb3263b2
...@@ -1076,10 +1076,13 @@ static int tc_stream_enable(struct tc_data *tc) ...@@ -1076,10 +1076,13 @@ static int tc_stream_enable(struct tc_data *tc)
static int tc_stream_disable(struct tc_data *tc) static int tc_stream_disable(struct tc_data *tc)
{ {
int ret; int ret;
u32 val;
dev_dbg(tc->dev, "disable video stream\n"); dev_dbg(tc->dev, "disable video stream\n");
tc_write(DP0CTL, 0); tc_read(DP0CTL, &val);
val &= ~VID_EN;
tc_write(DP0CTL, val);
tc_pxl_pll_dis(tc); tc_pxl_pll_dis(tc);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment