]> git.karo-electronics.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:06:02 +0000 (12:06 -0700)
commitb599876605b32b7b692b095df613af8d27240a1f
tree1755977aeb9d97144164a60d50ec5b2652269859
parent28513ead437be0ab26124c430411c1358b69e71d
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