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] lm-sens 2.10.5 fschmd support
Date: Sat, 13 Oct 2007 17:14:28 +0000	[thread overview]
Message-ID: <20071013191428.6e5ea363@hyperion.delvare> (raw)
In-Reply-To: <470F3474.5040809@hhs.nl>

Hi Hans,

On Fri, 12 Oct 2007 10:46:44 +0200, Hans de Goede wrote:
> I've just committed support for the new fschmd to trunk, so that it will be 
> available in 2.10.5
> 
> It would be much appreciated if people who have an fsc chip could test the 
> current trunk with it. I've been very carefull to make sure there will be no 
> regressions.
> 
> Also a quick review would be nice.

I've taken a look. Except for a few cosmetic fixes I already committed,
here are my concerns:

* In changeset 4938, you modified the fsc* support code in "sensors" to
  properly use the fault bit instead of the alarm bit to report faults.
  However this means that the alarms are no longer reported. This is a kind
  of regression. Could you please add alarm reporting?

* In changeset 4939:

> #define SENSORS_FSCHMD_FAN_FEATURES(nr) \ 
>         { { SENSORS_FSCHMD_FAN(nr), "fan" #nr, \ 
>                 NOMAP, NOMAP, R }, \ 
>                 NOSYSCTL, VALUE(2), 0 }, \ 
>         { { SENSORS_FSCHMD_FAN_DIV(nr), "fan" #nr "_div", \ 
>                 SENSORS_FSCHMD_FAN(nr), NOMAP, R }, \ 
>                 NOSYSCTL, VALUE(1), 0 }, \ 
>         { { SENSORS_FSCHMD_FAN_ALARM(nr), "fan" #nr "_alarm", \ 
>                 SENSORS_FSCHMD_FAN(nr), NOMAP, R }, \ 
>                 NOSYSCTL, VALUE(1), 0 }, \ 
>         { { SENSORS_FSCHMD_FAN_FAULT(nr), "fan" #nr "_fault", \ 
>                 SENSORS_FSCHMD_FAN(nr), NOMAP, R }, \ 
>                 NOSYSCTL, VALUE(1), 0 } 

fan#_div should be RW, right?

> /* give up, use old name (probably won't work though...) */
> /* known to be the same:
> 	"alarms", "beep_enable", "vrm", "fan%d_div" (except old fscxxx drivers
> 	which use fan%d_ripple, fixed using altsysname for new drv. GRR)
> */

I don't think that you should have added this comment. What the original
comment means is that fan%d_div in 2.4 drivers stays fan%d_div in 2.6,
which is true. Whether other names also become fan%d_div for some
drivers in 2.6 is irrelevant at this point and has already been handled
before.

>   /* no error on failure as we get used for various FSC chips and not all 
>      have the same amount of fan sensors */ 

>   /* no error on failure as we get used for various FSC chips and not all 
>      have the same amount of temp sensors */ 

You could adjust the loops in print_fschmd() based on the chip type to
fix this problem. This is what we do for other drivers.

Other than that, your patch looks OK, well done, it wasn't an easy one.

As a side note, I am curious how the fscher driver was supposed to work
before your patch. The driver creates fan#_div when libsensors lists
fan#_ripple. So unless I'm missing something, it probably just wasn't
working, and nobody ever bothered to report. Odd.

-- 
Jean Delvare

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

  reply	other threads:[~2007-10-13 17:14 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-12  8:46 [lm-sensors] lm-sens 2.10.5 fschmd support Hans de Goede
2007-10-13 17:14 ` Jean Delvare [this message]
2007-10-14 11:57 ` Hans de Goede
2007-10-15 13:17 ` 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=20071013191428.6e5ea363@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.