Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2792c152 authored by Tomi Valkeinen's avatar Tomi Valkeinen Committed by Andrzej Hajda
Browse files

drm/bridge: tc358767: remove check for video mode in link enable



tc_main_link_enable() checks if videomode has been set, and fails if
there's no videomode. As tc_main_link_enable() no longer depends on the
videomode, we can drop the check.

Also, while tc_stream_enable() does depend on the videomode, we can
expect that a mode has been set before drm_bridge_funcs.enable is
called, so we don't need the check there either.

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-18-tomi.valkeinen@ti.com
parent f9538357
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -773,10 +773,6 @@ static int tc_main_link_enable(struct tc_data *tc)
	int ret;
	u8 tmp[8];

	/* display mode should be set at this point */
	if (!tc->mode)
		return -EINVAL;

	dev_dbg(tc->dev, "link enable\n");

	tc_read(DP0CTL, &value);