All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jean Delvare <khali@linux-fr.org>
To: lm-sensors@vger.kernel.org
Subject: Re: [lm-sensors] [PATCH 1/4] hwmon: (w83791d) fan 4/5 pins can also
Date: Tue, 30 Sep 2008 13:59:55 +0000	[thread overview]
Message-ID: <20080930155955.1bb56a93@hyperion.delvare> (raw)
In-Reply-To: <200808060029.31190.m.hulsman@tudelft.nl>

Hi Marc, Hans,

On Wed, 06 Aug 2008 09:46:05 +0200, Hans de Goede wrote:
> Marc Hulsman wrote:
> > Fan 4/5 and PWM 4/5 pins can be used for GPIO. If the bios initializes these 
> > pins as in use for GPIO we keep it that way and do not construct the 
> > sysfs-interface for them.  I left the code for reading the corresponding 
> > registers during update_device unchanged as adding conditional terms would 
> > only complicate the code. 
> 
> Looks good:
> Acked-by: Hans de Goede <j.w.r.degoede@hhs.nl>

Patch applied, thanks.

> One note though (for a future patch) you say you keep reading the unused regs 
> to keep the code clean. I understand this, but please keep in mind that i2c is 
> pretty slow, so you might want todo another patch changing this.

I second that. Every I2C register access we can avoid (without loss of
functionality, of course) is welcome.

> Or even better write a patch where you stop re-reading never changing registers 
> completely, iow read config / min / max registers only once on probe and then 
> only read registers which actually measure things (and thus can change without 
> a write) in update_device (Yes there is the potential problem of acpi code 
> writing to the device underneath us but we aren't checking for that now anyways).

This could be done too.

-- 
Jean Delvare

_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

      parent reply	other threads:[~2008-09-30 13:59 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-05 22:29 [lm-sensors] [PATCH 1/4] hwmon: (w83791d) fan 4/5 pins can also be Marc Hulsman
2008-08-06  7:46 ` [lm-sensors] [PATCH 1/4] hwmon: (w83791d) fan 4/5 pins can also Hans de Goede
2008-09-30 13:59 ` 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=20080930155955.1bb56a93@hyperion.delvare \
    --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.