]> git.baikalelectronics.ru Git - kernel.git/commit
viafb: correct sync polarity for OLPC DCON
authorDaniel Drake <dsd@laptop.org>
Mon, 21 Nov 2011 15:05:56 +0000 (15:05 +0000)
committerFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
Tue, 22 Nov 2011 00:56:17 +0000 (00:56 +0000)
commit914b4a5e3de813859d5992bdeb826a7cc51a5f6f
tree7a0569f2301e25e9fbd9fec258fab46bb2adf2f4
parent4cbeaf579409bc32fcad1e5c3b59ce5c4f811ebc
viafb: correct sync polarity for OLPC DCON

While the OLPC display appears to be able to handle either positive
or negative sync, the Display Controller only recognises positive sync.

This brings viafb (for XO-1.5) in line with lxfb (for XO-1) and
fixes a recent regression where the XO-1.5 DCON could no longer be
frozen. Thanks to Florian Tobias Schandinat for helping identify
the fix.

Test case: from a vt,
echo 1 > /sys/devices/platform/dcon/freeze
should cause the current screen contents to freeze, rather than garbage being
displayed.

Signed-off-by: Daniel Drake <dsd@laptop.org>
Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Cc: stable@kernel.org
drivers/video/via/share.h