[PATCH] ppc64: Fix Fan control for new PowerMac G5 2.7GHz machines

Benjamin Herrenschmidt benh at kernel.crashing.org
Wed Aug 10 19:12:09 EST 2005


Hi !

It would be nice if that bug fix could still sneak into 2.6.13 ...

The workaround for broken device-tree that prevents fan control from
working on recent G5 models need to be "enabled" for machines with
revision 0x37 of the bridge in addition to machines with revision 0x35.

Signed-off-by: Geoff Levand <geoffrey.levand at am.sony.com>
Signed-off-by: Benjamin Herrenschmidt <benh at kernel.crashing.org>

--- a/arch/ppc64/kernel/prom_init.c	2005-07-27 18:34:40.000000000 -0700
+++ b/arch/ppc64/kernel/prom_init.c	2005-08-09 16:18:04.000000000 -0700
@@ -1803,7 +1803,7 @@
 	if (prom_getprop(u3, "device-rev", &u3_rev, sizeof(u3_rev))
 	    == PROM_ERROR)
 		return;
-	if (u3_rev != 0x35)
+	if (u3_rev != 0x35 && u3_rev != 0x37)
 		return;
 	/* does it need fixup ? */
 	if (prom_getproplen(i2c, "interrupts") > 0)






More information about the Linuxppc64-dev mailing list