[PATCH] Allow PMU LED control on PowerMac 7,3

Tony Vroon chainsaw at gentoo.org
Sat Mar 10 11:01:23 EST 2007


This allows the PMU LED on a PowerMac 7,3 (Dual G5 2.0GHz, June 2004) to be 
controlled. The physical LED is never off, unlike an iBook/PowerBook LED.
It is rather dim ("off") or very bright ("on").
Unfortunately the SATA controller in this machine does not (currently?) 
work with the IDE trigger of the LED subsystem, but that is not a PMU problem.

Signed-off-by: Tony Vroon <chainsaw at gentoo.org>

--- linux-2.6/drivers/macintosh/via-pmu-led.c.orig	2007-03-09 22:38:31.000000000 +0000
+++ linux-2.6/drivers/macintosh/via-pmu-led.c	2007-03-09 23:01:21.000000000 +0000
@@ -124,7 +124,8 @@
 	if (model == NULL)
 		return -ENODEV;
 	if (strncmp(model, "PowerBook", strlen("PowerBook")) != 0 &&
-	    strncmp(model, "iBook", strlen("iBook")) != 0) {
+	    strncmp(model, "iBook", strlen("iBook")) != 0 &&
+	    strncmp(model, "PowerMac7,3", strlen("PowerMac7,3")) != 0) {
 		of_node_put(dt);
 		/* ignore */
 		return -ENODEV;



More information about the Linuxppc-dev mailing list