summaryrefslogtreecommitdiff
path: root/drivers/gpu
diff options
context:
space:
mode:
authorInki Dae <inki.dae@samsung.com>2012-06-27 07:16:26 (GMT)
committerInki Dae <inki.dae@samsung.com>2012-07-27 02:13:56 (GMT)
commitd7b8478aa9551bc6585c20287c4ed73007ea51fd (patch)
tree5acc116e6c138b05f2f75b0c1239a94c363ad1b1 /drivers/gpu
parentd07d39df303f91b17d41e86b402f5cf9e98e7492 (diff)
downloadlinux-d7b8478aa9551bc6585c20287c4ed73007ea51fd.tar.xz
drm/exynos: check if raw edid data is fake or not for test
if raw edid data isn't same as fake data then it can't be tested. Signed-off-by: Inki Dae <inki.dae@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/exynos/exynos_drm_vidi.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_vidi.c b/drivers/gpu/drm/exynos/exynos_drm_vidi.c
index 88dae6b..dbbf2fc 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_vidi.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_vidi.c
@@ -533,6 +533,12 @@ static int vidi_store_connection(struct device *dev,
if (!ctx->raw_edid)
ctx->raw_edid = (struct edid *)fake_edid_info;
+ /* if raw_edid isn't same as fake data then it can't be tested. */
+ if (ctx->raw_edid != (struct edid *)fake_edid_info) {
+ DRM_DEBUG_KMS("edid data is not fake data.\n");
+ return -EINVAL;
+ }
+
DRM_DEBUG_KMS("requested connection.\n");
drm_helper_hpd_irq_event(ctx->subdrv.drm_dev);