diff options
author | Inki Dae <inki.dae@samsung.com> | 2012-06-27 03:16:26 -0400 |
---|---|---|
committer | Inki Dae <inki.dae@samsung.com> | 2012-07-26 22:13:56 -0400 |
commit | d7b8478aa9551bc6585c20287c4ed73007ea51fd (patch) | |
tree | 5acc116e6c138b05f2f75b0c1239a94c363ad1b1 /drivers/gpu/drm/exynos | |
parent | d07d39df303f91b17d41e86b402f5cf9e98e7492 (diff) |
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/drm/exynos')
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_drm_vidi.c | 6 |
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 88dae6b012b3..dbbf2fc29ab6 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, | |||
533 | if (!ctx->raw_edid) | 533 | if (!ctx->raw_edid) |
534 | ctx->raw_edid = (struct edid *)fake_edid_info; | 534 | ctx->raw_edid = (struct edid *)fake_edid_info; |
535 | 535 | ||
536 | /* if raw_edid isn't same as fake data then it can't be tested. */ | ||
537 | if (ctx->raw_edid != (struct edid *)fake_edid_info) { | ||
538 | DRM_DEBUG_KMS("edid data is not fake data.\n"); | ||
539 | return -EINVAL; | ||
540 | } | ||
541 | |||
536 | DRM_DEBUG_KMS("requested connection.\n"); | 542 | DRM_DEBUG_KMS("requested connection.\n"); |
537 | 543 | ||
538 | drm_helper_hpd_irq_event(ctx->subdrv.drm_dev); | 544 | drm_helper_hpd_irq_event(ctx->subdrv.drm_dev); |