Skip to content

Commit 14c0ac3

Browse files
Mark Yaorkhuangtao
authored andcommitted
drm/bridge: analogix: fix edid not works
Change-Id: I1a964b51d0d137e66ad5d073a2eef2fb22770bba Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
1 parent 8f68cd8 commit 14c0ac3

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

drivers/gpu/drm/bridge/analogix/analogix_dp_core.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -938,9 +938,10 @@ int analogix_dp_get_modes(struct drm_connector *connector)
938938

939939
pm_runtime_get_sync(dp->dev);
940940

941-
if (dp->plat_data->panel) {
941+
if (dp->plat_data->panel)
942942
num_modes += drm_panel_get_modes(dp->plat_data->panel);
943-
} else if (analogix_dp_handle_edid(dp) == 0) {
943+
944+
if (!num_modes && !analogix_dp_handle_edid(dp)) {
944945
drm_mode_connector_update_edid_property(&dp->connector, edid);
945946
num_modes += drm_add_edid_modes(&dp->connector, edid);
946947
}

0 commit comments

Comments
 (0)