]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
KMS: fix EDID detailed timing vsync parsing
authorTorsten Duwe <torsten@lst.de>
Sat, 23 Mar 2013 14:38:22 +0000 (15:38 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Mar 2013 19:12:11 +0000 (12:12 -0700)
commit2c5d8164483160f6f280da92e358af16aa966cf1
tree98d4c2c6b7fa428545a4e430aeb88b7f4e5c2b02
parente03f8b87d6b11e8c2f9d31b221d8c536091485af
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/drm_edid.c