From: Jean Delvare <khali@linux-fr.org>
To: Guenter Roeck <guenter.roeck@ericsson.com>
Cc: Andrew Morton <akpm@linux-foundation.org>,
Ethan Lawrence <e.law87@yahoo.com>,
Jim Cromie <jim.cromie@gmail.com>,
H Hartley Sweeten <hsweeten@visionengravers.com>,
Iain <selsinork@gmail.com>,
"lm-sensors@lm-sensors.org" <lm-sensors@lm-sensors.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"lars4910@hotmail.com" <lars4910@hotmail.com>,
"birdie@permonline.ru" <birdie@permonline.ru>,
"jadcock@cox.net" <jadcock@cox.net>,
"binximeng@gmail.com" <binximeng@gmail.com>
Subject: Re: [PATCH v4 1/2] hwmon: w83627ehf driver cleanup
Date: Mon, 5 Jul 2010 13:59:00 +0200 [thread overview]
Message-ID: <20100705135900.457764e7@hyperion.delvare> (raw)
In-Reply-To: <20100704135010.GA21500@ericsson.com>
Hi Guenter,
On Sun, 4 Jul 2010 06:50:10 -0700, Guenter Roeck wrote:
> On Sun, Jul 04, 2010 at 07:24:42AM -0400, Jean Delvare wrote:
> > I'm skeptical. data->has_fan refers to fan inputs, not fan outputs.
> > There is no guarantee that pwm1 is mapped to fan1, etc., so you can't
> > use data->has_fan to discard fan outputs.
>
> Maybe, but they are treated as 1:1 for fan4 when creating the pwm files,
> and the pwm files for fan4 are not created if the matching bit isn't set.
> This applies to all chips supported by this driver. And for fan1..3, the
> mapping is supposed to be 1:1 per the driver documentation.
The driver documentation was written by ourselves, I wouldn't trust it ;)
Oh well, I hadn't noticed that sysfs file creation already assumes a
1:1 fan to pwm mapping. I am still unsure if it is correct, but it might
be good enough on practice, and your patch isn't changing it anyway, so
it's not the time to discuss it.
> I figured that it does not make sense to read the registers for a non-existing
> attribute file.
I agree that we want to skip register reads when possible (not that it
matters as much as when reading over slow SMBus though.)
I have no further objections to your patch, so I'll apply it now. Then
I'll publish the patches and update the stand-alone driver, and we can
call for testers.
--
Jean Delvare
next prev parent reply other threads:[~2010-07-05 11:59 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-03 22:13 [PATCH v4 0/2] hwmon: Add support for W83667HG-B to w83627ehf driver Guenter Roeck
2010-07-03 22:13 ` [PATCH v4 1/2] hwmon: w83627ehf driver cleanup Guenter Roeck
2010-07-04 11:24 ` Jean Delvare
2010-07-04 13:50 ` Guenter Roeck
2010-07-05 11:59 ` Jean Delvare [this message]
2010-07-05 15:23 ` [lm-sensors] " Jean Delvare
2010-07-03 22:13 ` [PATCH v4 2/2] hwmon: Add support for W83667HG-B to w83627ehf driver Guenter Roeck
2010-07-04 11:29 ` Jean Delvare
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=20100705135900.457764e7@hyperion.delvare \
--to=khali@linux-fr.org \
--cc=akpm@linux-foundation.org \
--cc=binximeng@gmail.com \
--cc=birdie@permonline.ru \
--cc=e.law87@yahoo.com \
--cc=guenter.roeck@ericsson.com \
--cc=hsweeten@visionengravers.com \
--cc=jadcock@cox.net \
--cc=jim.cromie@gmail.com \
--cc=lars4910@hotmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=lm-sensors@lm-sensors.org \
--cc=selsinork@gmail.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox