From: khali@linux-fr.org (Jean Delvare)
To: lm-sensors@vger.kernel.org
Subject: it87 manual pwm patch form 2.6.7/8
Date: Thu, 19 May 2005 06:25:06 +0000 [thread overview]
Message-ID: <20040719214110.1e1decdf.khali@linux-fr.org> (raw)
In-Reply-To: <20040714144826.GA9936@nemo.sby.abo.fi>
Hi Jonas,
> Here is a patch adding manual pwm support to the it87 driver. I hope I
> have addressed all the comments you gave to my initial version (btw,
> thanks for taking the time to make them, they were helpful).
You're welcome :)
> In addition to manual pwm, this patch contains some whitespace
> cleanups. It also removes the "reset" module option, which IMO is just
> broken to have there. Currently we lose a lot of BIOS suppleid
> settings when it is used, rendering the chip useless (unless the
> requiered settings just happen to match the chip defauls). For a
> working reset, we should really save and reload every register. If
> someone wants to reset it, use i2ctools.
I fully agree with your analysis.
> The patch is against 2.6.7 with the cleanup patch I submitted earlier
> applied (according to the kernel changelog this should be identical to
> the version in 2.6.8-rc1, but I haven't verified that).
Just tried and it fails to apply to 2.6.8-rc2 (Hunk #8 FAILED at 592).
> The autopwm patch will hopefully follow once this patch is approved
> (the autopwm part is not quite in a submittable state yet).
Thanks a lot for your effort to submit your patches in an incremental
way, it really helps.
You patch looks fine to me (I read it admittedly quickly, I cannot test
the code anyway), except for one thing I am wondering about:
> + /* initialize to sane defaults */
> + for (i = 0; i < 3; i++) {
> + data->manual_pwm_ctl[i] = 0x7f;
> }
Why do you do that? I think you should read the default value from the
chip. We have had several complaints from users about drivers changing
the fan speed by just being loaded, so that's the kind of things we now
want to avoid. And I'm now even sure I understand in which condition you
would use that "sane" default. So it you do the right thing, please
explain (and comment in the code).
Thanks.
--
Jean "Khali" Delvare
http://khali.linux-fr.org/
prev parent reply other threads:[~2005-05-19 6:25 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-19 6:25 it87 manual pwm patch form 2.6.7/8 Jonas Munsin
2005-05-19 6:25 ` Jean Delvare [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040719214110.1e1decdf.khali@linux-fr.org \
--to=khali@linux-fr.org \
--cc=lm-sensors@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.