]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] powerpc: More via-pmu backlight fixes
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 1 Sep 2006 04:27:49 +0000 (21:27 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 1 Sep 2006 18:39:09 +0000 (11:39 -0700)
commite79b990dc8f0a6b1ed19b2f15d164802e0edf730
treeefe10d3e6355353a3ffd416a873d609119d9fbd9
parent610a9dc3421c8a84aa1a76241edc06825724caee
[PATCH] powerpc: More via-pmu backlight fixes

The via-pmu backlight code (introduced in 2.6.18) has various design issues
causing crashes on machines using it like the old Wallstreet powerbook
(Michael, the author, never managed to test on these and I just got my hand
on one of those old beasts).

This fixes them by no longer trying to hijack the backlight device of the
frontmost framebuffer (causing that framebuffer to crash) but having it's
own local bits instead.  Might look weird but it's better that way on those
old machines, at least as a last-minute fix for 2.6.18.  We might rework
the whole thing later.  This patch also changes the way it gets notified of
sleep and wakeup in order to properly shut the backlight down on sleep and
bring it back on wakeup.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: "Antonino A. Daplas" <adaplas@pol.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/macintosh/via-pmu-backlight.c
drivers/macintosh/via-pmu.c