KMS: fix EDID detailed timing vsync parsing
authorTorsten Duwe <torsten@lst.de>
Sat, 23 Mar 2013 14:38:22 +0000 (15:38 +0100)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 27 Mar 2013 02:41:24 +0000 (02:41 +0000)
commit1b5ee14aafbdee09fc04d1a66162378f65652651
tree731c31d4d801710406eced4ffbf6f7652f54320b
parente58c0a52f9510dee5dc715cb76954baf36f5b6e7
KMS: fix EDID detailed timing vsync parsing

commit 16dad1d743d31a104a849c8944e6b9eb479f6cd7 upstream.

EDID spreads some values across multiple bytes; bit-fiddling is needed
to retrieve these.  The current code to parse "detailed timings" has a
cut&paste error that results in a vsync offset of at most 15 lines
instead of 63.

See

   http://en.wikipedia.org/wiki/EDID

and in the "EDID Detailed Timing Descriptor" see bytes 10+11 show why
that needs to be a left shift.

Signed-off-by: Torsten Duwe <duwe@lst.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/gpu/drm/drm_edid.c