Unverified Commit 4059a0e2 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!10111 drm/exynos: hdmi: report safe 640x480 mode as a fallback when no EDID found

parents 4552aaa2 2729666f
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -887,11 +887,11 @@ static int hdmi_get_modes(struct drm_connector *connector)
	int ret;

	if (!hdata->ddc_adpt)
		return 0;
		goto no_edid;

	edid = drm_get_edid(connector, hdata->ddc_adpt);
	if (!edid)
		return 0;
		goto no_edid;

	hdata->dvi_mode = !connector->display_info.is_hdmi;
	DRM_DEV_DEBUG_KMS(hdata->dev, "%s : width[%d] x height[%d]\n",
@@ -906,6 +906,9 @@ static int hdmi_get_modes(struct drm_connector *connector)
	kfree(edid);

	return ret;

no_edid:
	return drm_add_modes_noedid(connector, 640, 480);
}

static int hdmi_find_phy_conf(struct hdmi_context *hdata, u32 pixel_clock)