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

drm/bridge: tc358767: read display_props in get_modes()

We need to know the link bandwidth to filter out modes we cannot
support, so we need to have read the display props before doing the
filtering.

To ensure we have up to date display props, call tc_get_display_props()
in the beginning of tc_connector_get_modes().

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-22-tomi.valkeinen@ti.com

authored by

Tomi Valkeinen and committed by
Andrzej Hajda
32315730 46648a3c

+7
+7
drivers/gpu/drm/bridge/tc358767.c
··· 1188 1188 struct tc_data *tc = connector_to_tc(connector); 1189 1189 struct edid *edid; 1190 1190 unsigned int count; 1191 + int ret; 1192 + 1193 + ret = tc_get_display_props(tc); 1194 + if (ret < 0) { 1195 + dev_err(tc->dev, "failed to read display props: %d\n", ret); 1196 + return 0; 1197 + } 1191 1198 1192 1199 if (tc->panel && tc->panel->funcs && tc->panel->funcs->get_modes) { 1193 1200 count = tc->panel->funcs->get_modes(tc->panel);