OSDN Git Service

drm/hisilicon: Features to support reading resolutions from EDID
authorTian Tao <tiantao6@hisilicon.com>
Tue, 22 Sep 2020 12:44:30 +0000 (20:44 +0800)
committerTian Tao <tiantao6@hisilicon.com>
Fri, 25 Sep 2020 00:30:06 +0000 (20:30 -0400)
commita0d078d06e516184e2f575f3803935697b5e3ac6
treec912bbc2306e4c1c9555d5d2910789003c2ed382
parent4eb4d99dfe3018d86f4529112aa7082f43b6996a
drm/hisilicon: Features to support reading resolutions from EDID

Use drm_get_edid to get the resolution, if that fails, set it to
a fixed resolution. Rewrite the desrtoy callback function to release
resources.

Signed-off-by: Tian Tao <tiantao6@hisilicon.com>
Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://patchwork.freedesktop.org/patch/msgid/1600778670-60370-3-git-send-email-tiantao6@hisilicon.com
drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_vdac.c