diff options
author | Darrick J. Wong <djwong@us.ibm.com> | 2009-12-03 16:19:59 +0000 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2009-12-09 17:09:31 +1100 |
commit | 1496e89ae2a0962748e55165a590fa3209c6f158 (patch) | |
tree | 7cc992051eae48946cf11fa9595447e5bb0cf7b6 /arch/m32r | |
parent | 37580f3f229fa72f2ef73ea7df0a1d28a9dab36d (diff) |
powerpc/therm_adt746x: Record pwm invert bit at module load time]
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>
CC: <stable@kernel.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/m32r')
0 files changed, 0 insertions, 0 deletions