[PATCH] ppc64: Fix Fan control for new PowerMac G5 2.7GHz machines
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 10 Aug 2005 09:12:09 +0000 (11:12 +0200)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 10 Aug 2005 18:07:40 +0000 (11:07 -0700)
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@am.sony.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/ppc64/kernel/prom_init.c

index e248a7950aebdebb5a7ead74b5482ad18d7c30e1..dbbe6c79d8dac4f1b5a370380635aa36a7b57912 100644 (file)
@@ -1803,7 +1803,7 @@ static void __init fixup_device_tree(void)
        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)