drm: Add the basic check for the detailed timing in EDID
authorZhao Yakui <yakui.zhao@intel.com>
Wed, 14 Oct 2009 01:11:25 +0000 (09:11 +0800)
committerDave Airlie <airlied@redhat.com>
Wed, 28 Oct 2009 01:23:39 +0000 (11:23 +1000)
commitfcb45611448098a36b893bda71e72bd39730a3dd
tree3e5c025495f058408fa4f7a72854d2b6cba8587a
parent93239ea158368016a017200cb133e1057fb3ef89
drm: Add the basic check for the detailed timing in EDID

Sometimes we will get the incorrect display modeline when parsing the detailed
timing in EDID. For example:
   >hsync/vsync width is zero
   >sync is beyond the blank.

So add the basic check for the detailed timing in EDID to avoid the incorrect
display modeline.

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_edid.c