All of lore.kernel.org
 help / color / mirror / Atom feed
From: Guenter Roeck <guenter.roeck@ericsson.com>
To: lm-sensors@vger.kernel.org
Subject: [lm-sensors] New sysfs attribute for fan control: fan pulses per
Date: Wed, 23 Feb 2011 03:54:14 +0000	[thread overview]
Message-ID: <20110223035414.GA18074@ericsson.com> (raw)

Hi all,

while working on NCT6776F support, I realized that there is a fan control
attribute which is not currently supported by the syfs ABI: The number of
fan pulses per revolution. On the NCT6776F, this can be configured in Bank 6,
registers 0x44 to 0x46. Possible values are 0..3 for 4, 1, 2, or 3 pulses 
per revolution.

I encountered the same parameter when working on PMBus devices. At the time,
I thought this was a variant of a fan divisor (ie a divisor of 1, 2, 3, or 4),
but apparently it is different and independent of the fan divisor.

Question is if it would make sense to merge support for this attribute into fan[1-*]_div,
or if we should define a new attribute specifically for fan pulses per revolution.

Merging it into fan[1-*]_div would mean we would have to permit new values for it,
and we would need a more complex description. Changing the value could be ambiguous
if there is ever a chip which supports both fan divisor and pulse/revolution
configuration registers (NCT6776F and PMBus devices don't, so we would be safe there).

A new attribute (fanX_pulses ? fanX_ppr ?) would be more straightforward,
but ... it would be a new attribute.

Any thoughts ?

Thanks,
Guenter
 

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

             reply	other threads:[~2011-02-23  3:54 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-23  3:54 Guenter Roeck [this message]
2011-02-23 16:29 ` [lm-sensors] New sysfs attribute for fan control: fan pulses Phillip Susi
2011-02-23 16:53 ` Guenter Roeck
2011-03-03 22:31 ` 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=20110223035414.GA18074@ericsson.com \
    --to=guenter.roeck@ericsson.com \
    --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.