drm/bridge: analogix_dp: allows to get edid for the panel

Change-Id: I7caba18fb979ad2b8f419c58f989b27d3e756ebf
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
This commit is contained in:
Wyon Bi
2020-07-11 16:25:24 +08:00
committed by Tao Huang
parent c49c170321
commit 14fbe98150

View File

@@ -1113,9 +1113,10 @@ static int analogix_dp_get_modes(struct drm_connector *connector)
struct edid *edid;
int ret, num_modes = 0;
if (dp->plat_data->panel) {
if (dp->plat_data->panel)
num_modes += drm_panel_get_modes(dp->plat_data->panel);
} else {
if (!num_modes) {
ret = analogix_dp_prepare_panel(dp, true, false);
if (ret) {
DRM_ERROR("Failed to prepare panel (%d)\n", ret);