[PATCH] powermac: More powermac backlight fixes
authorMichael Hanselmann <linux-kernel@hansmi.ch>
Sun, 30 Jul 2006 10:04:19 +0000 (03:04 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 31 Jul 2006 20:28:45 +0000 (13:28 -0700)
commit4b755999d6e0c1d988fb448289abb6c226cd8c36
tree0310376a65b0d25af249554a133b5a799acf22f6
parent994aad251acab32a5d40d4a9501dc3e736562b6d
[PATCH] powermac: More powermac backlight fixes

This patch fixes several problems:
- The legacy backlight value might be set at interrupt time. Introduced
  a worker to prevent it from directly calling the backlight code.
- via-pmu allows the backlight to be grabbed, in which case we need to
  prevent other kernel code from changing the brightness.
- Don't send PMU requests in via-pmu-backlight when the machine is about
  to sleep or waking up.
- More Kconfig fixes.

Signed-off-by: Michael Hanselmann <linux-kernel@hansmi.ch>
Cc: 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>
arch/powerpc/platforms/powermac/backlight.c
drivers/macintosh/Kconfig
drivers/macintosh/adbhid.c
drivers/macintosh/via-pmu-backlight.c
drivers/macintosh/via-pmu.c
drivers/video/Kconfig
drivers/video/aty/aty128fb.c
drivers/video/aty/atyfb_base.c
include/asm-powerpc/backlight.h
include/linux/pmu.h