From: Benjamin Herrenschmidt Date: Wed, 10 Aug 2005 09:12:09 +0000 (+0200) Subject: [PATCH] ppc64: Fix Fan control for new PowerMac G5 2.7GHz machines X-Git-Tag: firefly_0821_release~42358 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=e62b8b2bc73b2433239a2ac394c2fafd50c43d9e;p=firefly-linux-kernel-4.4.55.git [PATCH] ppc64: Fix Fan control for new PowerMac G5 2.7GHz machines 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 Signed-off-by: Benjamin Herrenschmidt Signed-off-by: Linus Torvalds --- diff --git a/arch/ppc64/kernel/prom_init.c b/arch/ppc64/kernel/prom_init.c index e248a7950aeb..dbbe6c79d8da 100644 --- a/arch/ppc64/kernel/prom_init.c +++ b/arch/ppc64/kernel/prom_init.c @@ -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)