]> git.baikalelectronics.ru Git - kernel.git/commit
x86, olpc: fix model detection without OFW
authorChris Ball <cjb@laptop.org>
Sat, 14 Feb 2009 01:56:18 +0000 (20:56 -0500)
committerIngo Molnar <mingo@elte.hu>
Sat, 14 Feb 2009 22:05:25 +0000 (23:05 +0100)
commitea2ac0099e35a5565e71f477f1470c4660187aa9
tree7b24662f1bcad6cfd9fbcef98d59f6f10a9712ba
parent94ae1dd55da79d6abb87253f261fba066c21598d
x86, olpc: fix model detection without OFW

Impact: fix "garbled display, laptop is unusable" bug

Commit 670d0dc872344730cfba977fe19f1d238e70fda9 ("x86, olpc: fix endian
bug in openfirmware workaround") breaks model comparison on OLPC; the value
0xc2 needs to be scaled up by olpc_board().

The pre-patch version was wrong, but accidentally worked anyway
(big-endian 0xc2 is big enough to satisfy all other board revisions,
but little endian 0xc2 is not).

Signed-off-by: Chris Ball <cjb@laptop.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Acked-by: Andres Salomon <dilinger@queued.net>
Cc: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/olpc.c