Re: [PATCH] hwmon: f71882fg: Add support for the Fintek F71808E

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Hans de Goede
Date: Wednesday, August 4, 2010 - 4:36 am

Hi,

I know I've reviewed this patch before, but now I have a datasheet
so this time I've been a bit more thorough and I've found 2 small
issues and 1 bigger one.

Andrew can you please drop this patch from -mm until this is resolved?

On 08/01/2010 03:30 PM, Giel van Schijndel wrote:

My datasheet strongly disagrees with this the F71889FG has 5 pwm zones
each with their own speed divided by 4 boundary temps, where as
the F71808E has 3 pwm zones divided by 2 boundary temps. So it is much
more like the F71862FG, which also has 2 boundary temps, and 3 pwm zones,
*but* the F71862FG has one pwm zone hardwired to 100%.

So it looks like you need to create a new f71808e_auto_pwm_attr array
esp. for this model, as well as a special case for reading the
auto pwm attr in f71882fg_update_device.

Also the auto pwm of the F71808E allows following of digital temps
read to peci / amdsi / ibex rather then following a directly connected
temp diode like the F71889FG, which the driver does not support, so
you should check if this is enabled and if so disable the auto pwm
attr entirely. Code for this is already in place for the F71889FG,
you simply need to make it trigger when the chip is a F71808E too.


There is a problem here though, the new fxxxx_temp_attr contains
attributes for temp#_max_beep and temp#_crit_beep, but the F71808E
lacks that function. So I think that the new fxxxx_temp_attr
need to be split into fxxxx_temp_attr and fxxxx_temp_beep_attr,
like is already done with fxxxx_fan_attr.

Also while making changes, I must say I don't like the splitting
of fxxxx_temp_attr into fxxxx_temp_attr and f71862_temp_attr just because
the number of sensors differs. I think it would be better to instead
make fxxxx_temp_attr a 2 dimensional array like fxxxx_fan_attr and like
with fxxxx_fan_attr register as many sensor attr blocks as the specific
model has.


This is wrong, as you already indicate and the datasheet as well this
chip in question is an f71808e not an f71808fg, also note that there is
an f71808a model as well which is different (and has a different super io
chip id).

One last request in the second switch case in f71882fg_remove()
there is a default label which contains a comment which models it applies
to, please add the f71808e to that comment.

Regards,

Hans
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] hwmon: f71882fg: properly acquire I/O regions whil ..., Giel van Schijndel, (Tue Mar 23, 7:12 am)
Re: [PATCH] hwmon: f71882fg: properly acquire I/O regions ..., Giel van Schijndel, (Tue Mar 23, 7:17 am)
Re: [PATCH] hwmon: f71882fg: properly acquire I/O regions ..., Giel van Schijndel, (Tue Mar 23, 4:01 pm)
[PATCH 1/4] [RFC] hwmon: f71882fg: Add support for the Fin ..., Giel van Schijndel, (Tue Mar 23, 4:12 pm)
[PATCH 2/4] hwmon: f71882fg: prepare for addition of watch ..., Giel van Schijndel, (Tue Mar 23, 4:12 pm)
[PATCH 3/4] hwmon: f71882fg: add watchdog detection code, Giel van Schijndel, (Tue Mar 23, 4:12 pm)
[PATCH 4/4] [RFC] hwmon: f71882fg: Add watchdog API for F7 ..., Giel van Schijndel, (Tue Mar 23, 4:12 pm)
Re: [PATCH 4/4] [RFC] hwmon: f71882fg: Add watchdog API fo ..., Giel van Schijndel, (Tue Mar 23, 4:26 pm)
Re: [PATCH] hwmon: f71882fg: properly acquire I/O regions ..., Giel van Schijndel, (Wed Mar 24, 1:46 am)
[PATCH] hwmon: f71882fg: code cleanup, Giel van Schijndel, (Wed Mar 24, 2:09 am)
[PATCH] hwmon: f71882fg: acquire I/O regions while we're w ..., Giel van Schijndel, (Wed Mar 24, 2:09 am)
Re: [PATCH 1/4] hwmon: f71882fg: Add support for the Finte ..., Giel van Schijndel, (Wed Mar 24, 2:23 am)
Re: [PATCH] hwmon: f71882fg: properly acquire I/O regions ..., Giel van Schijndel, (Wed Mar 24, 2:34 am)
Re: [PATCH 4/4] [RFC] hwmon: f71882fg: Add watchdog API fo ..., Giel van Schijndel, (Wed Mar 24, 2:36 am)
Re: [PATCH] hwmon: f71882fg: code cleanup, Jean Delvare, (Wed Mar 24, 5:54 am)
Re: [PATCH 4/4] [RFC] hwmon: f71882fg: Add watchdog API fo ..., Giel van Schijndel, (Wed Mar 24, 8:35 am)
Re: [PATCH 4/4] [RFC] hwmon: f71882fg: Add watchdog API fo ..., Giel van Schijndel, (Wed Mar 24, 1:35 pm)
Re: [PATCH 4/4] [RFC] hwmon: f71882fg: Add watchdog API fo ..., Giel van Schijndel, (Thu Mar 25, 1:54 am)
Re: [PATCH 4/4] [RFC] hwmon: f71882fg: Add watchdog API fo ..., Giel van Schijndel, (Thu Mar 25, 3:40 am)
[PATCH 1/3] resource: shared I/O region support, Giel van Schijndel, (Thu Mar 25, 6:17 am)
[PATCH 2/3] hwmon: f71882fg: use a muxed resource lock for ..., Giel van Schijndel, (Thu Mar 25, 6:17 am)
[PATCH 3/3] [RFC] watchdog: f71808e_wdt: new watchdog driv ..., Giel van Schijndel, (Thu Mar 25, 6:17 am)
Re: [PATCH 1/3] resource: shared I/O region support, Giel van Schijndel, (Thu Mar 25, 11:03 am)
Re: [PATCH 1/3] resource: shared I/O region support, Alan Cox, (Thu Mar 25, 11:16 am)
Re: [PATCH 1/3] resource: shared I/O region support, Giel van Schijndel, (Mon Mar 29, 1:18 am)
Re: [PATCH 1/3] resource: shared I/O region support, Jesse Barnes, (Mon Mar 29, 9:07 am)
Re: [PATCH 1/3] resource: shared I/O region support, Giel van Schijndel, (Mon Mar 29, 10:38 am)
Re: [PATCH 1/3] resource: shared I/O region support, Giel van Schijndel, (Mon Mar 29, 10:44 am)
Re: [PATCH 1/3] resource: shared I/O region support, H. Peter Anvin, (Mon Mar 29, 10:45 am)
Re: [PATCH 1/3] resource: shared I/O region support, Jesse Barnes, (Mon Mar 29, 10:59 am)
Re: [PATCH 1/3] resource: shared I/O region support, Jesse Barnes, (Mon Mar 29, 10:59 am)
Re: [PATCH 1/3] resource: shared I/O region support, Jesse Barnes, (Mon Mar 29, 11:06 am)
Re: [PATCH 1/3] resource: shared I/O region support, H. Peter Anvin, (Mon Mar 29, 11:17 am)
Re: [PATCH 1/3] resource: shared I/O region support, Alan Cox, (Mon Mar 29, 11:29 am)
Re: [PATCH 1/3] resource: shared I/O region support, Alan Cox, (Mon Mar 29, 11:39 am)
Re: [PATCH 1/3] resource: shared I/O region support, H. Peter Anvin, (Mon Mar 29, 11:56 am)
Re: [PATCH 3/3] [RFC] watchdog: f71808e_wdt: new watchdog ..., Giel van Schijndel, (Tue Mar 30, 2:06 am)
Re: [PATCH 1/3] resource: shared I/O region support, Jesse Barnes, (Fri Apr 2, 1:29 pm)
Re: [PATCH 2/3] hwmon: f71882fg: use a muxed resource lock ..., Giel van Schijndel, (Sun Apr 25, 3:35 am)
Re: [PATCH 3/3] [RFC] watchdog: f71808e_wdt: new watchdog ..., Wim Van Sebroeck, (Thu May 20, 12:52 am)
Re: [PATCH 3/3] [RFC] watchdog: f71808e_wdt: new watchdog ..., Giel van Schijndel, (Tue May 25, 2:08 pm)
Re: [PATCH 3/3] [RFC] watchdog: f71808e_wdt: new watchdog ..., Wim Van Sebroeck, (Wed May 26, 12:38 am)
Re: [PATCH 2/3] hwmon: f71882fg: use a muxed resource lock ..., Giel van Schijndel, (Sat Jul 31, 2:21 pm)
Re: [PATCH 3/3] [RFC] watchdog: f71808e_wdt: new watchdog ..., Giel van Schijndel, (Sat Jul 31, 2:36 pm)
Re: [PATCH 1/4] hwmon: f71882fg: Add support for the Finte ..., Giel van Schijndel, (Sat Jul 31, 4:31 pm)
Re: [PATCH 1/4] hwmon: f71882fg: Add support for the Finte ..., Giel van Schijndel, (Sun Aug 1, 6:22 am)
[PATCH] hwmon: f71882fg: Add support for the Fintek F71808E, Giel van Schijndel, (Sun Aug 1, 6:30 am)
[PATCH 1/2] hwmon: f71882fg: use a muxed resource lock for ..., Giel van Schijndel, (Sun Aug 1, 6:30 am)
[PATCH 2/2] watchdog: f71808e_wdt: new watchdog driver for ..., Giel van Schijndel, (Sun Aug 1, 6:30 am)
Re: [PATCH] hwmon: f71882fg: Add support for the Fintek F7 ..., Hans de Goede, (Wed Aug 4, 4:36 am)
Re: [PATCH] hwmon: f71882fg: Add support for the Fintek F7 ..., Giel van Schijndel, (Wed Aug 4, 8:44 am)
Re: [PATCH] hwmon: f71882fg: Add support for the Fintek F7 ..., Giel van Schijndel, (Tue Aug 10, 12:11 pm)
Re: [PATCH] hwmon: f71882fg: Add support for the Fintek F7 ..., Giel van Schijndel, (Sun Aug 22, 11:28 am)
Re: [PATCH 1/2] hwmon: f71882fg: use a muxed resource lock ..., Giel van Schijndel, (Sat Oct 2, 3:59 pm)
[PATCH] hwmon: f71882fg: use a muxed resource lock for the ..., Giel van Schijndel, (Sun Oct 3, 5:09 am)