diff options
author | Darrick J. Wong <djwong@us.ibm.com> | 2009-12-03 16:19:59 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-12-18 13:44:24 -0800 |
commit | 0b1b72ba20a7d73136f57bb57ff8e2f3f79e62ad (patch) | |
tree | 1161ac0887c50e11aaf871d4f3618e666aef7a38 /arch/alpha/include/asm | |
parent | 178b0bc768f87d3b1d32af590204d8162b517bf4 (diff) | |
download | lwn-0b1b72ba20a7d73136f57bb57ff8e2f3f79e62ad.tar.gz lwn-0b1b72ba20a7d73136f57bb57ff8e2f3f79e62ad.zip |
powerpc/therm_adt746x: Record pwm invert bit at module load time]
commit 1496e89ae2a0962748e55165a590fa3209c6f158 upstream.
In commit 0512a9a8e277a9de2820211eef964473b714ae65, we unilaterally zero the
"pwm invert" bit in the fan behavior configuration register. On my PowerBook
G4, this results in the fans going to full speed at low temperature and
shutting off at high temperature because the pwm invert bit is supposed to be
set.
Therefore, record the pwm invert bit at driver load time, and write the bit
into the fan behavior control register. This restores correct behavior on my
PBG4 and should work around the bit being set to the wrong value after
suspend/resume (which is what the original patch was trying to fix). It also
fixes a minor omission where the pwm invert bit correction is NOT performed
when switching into automatic mode.
Signed-off-by: Darrick J. Wong <djwong@us.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'arch/alpha/include/asm')
0 files changed, 0 insertions, 0 deletions