mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 12:17:12 +09:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user