Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Tomi Valkeinen <tomi.valkeinen@ti.com>
Reviewed-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190528082747.3631-18-tomi.valkeinen@ti.com

authored by

Tomi Valkeinen and committed by
Andrzej Hajda
2792c152 f9538357

-4
-4
drivers/gpu/drm/bridge/tc358767.c
··· 773 773 int ret; 774 774 u8 tmp[8]; 775 775 776 - /* display mode should be set at this point */ 777 - if (!tc->mode) 778 - return -EINVAL; 779 - 780 776 dev_dbg(tc->dev, "link enable\n"); 781 777 782 778 tc_read(DP0CTL, &value);