All of lore.kernel.org
 help / color / mirror / Atom feed
* [lm-sensors] Patch: hwmon-abituguru-override-bank1detect.patch
@ 2006-06-25 12:00 Hans de Goede
  2006-06-25 18:36 ` [lm-sensors] Patch: hwmon-abituguru-override-bank1detect-doc.patch Hans de Goede
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Hans de Goede @ 2006-06-25 12:00 UTC (permalink / raw)
  To: lm-sensors

Hi all,

Now that the abituguru driver is seeing some more widespread testing it
has turned out that one the first generation of Abit uGuru motherboards,
with uGuru revision 1, the autodetect bank1 sensor type code doesn't
(always) work.

Thispatch adds a module param to override the autodetect, and it adds
validity checks for the value of the 2 other autodetection override
module params. An example of howto use the new param can be found here:
http://lm-sensors.org/wiki/Configurations/Abit/AN7

It would be nice if this patch could be merged before 2.6.18, as without
it the uguru driver is useless for people with the affected motherboards.

Regards,

Hans
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hwmon-abituguru-override-bank1detect.patch
Type: text/x-patch
Size: 2379 bytes
Desc: not available
Url : http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20060625/28b1a1bb/attachment.bin 

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [lm-sensors] Patch: hwmon-abituguru-override-bank1detect-doc.patch
  2006-06-25 12:00 [lm-sensors] Patch: hwmon-abituguru-override-bank1detect.patch Hans de Goede
@ 2006-06-25 18:36 ` Hans de Goede
  2006-06-26 21:30 ` [lm-sensors] Patch: hwmon-abituguru-override-bank1detect.patch Jean Delvare
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Hans de Goede @ 2006-06-25 18:36 UTC (permalink / raw)
  To: lm-sensors

Hi all,

Documentation update for the new bank1_types module param added by
hwmon-abituguru-override-bank1detect.patch

This patch also adds what we know about different revisions of the uGuru
and a note that the abituguru driver unfortunatly doesnot work at the
latest and greatest motherboards, which have what I think is revision 4
of the uGuru.

Regards,

Hans
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hwmon-abituguru-override-bank1detect-doc.patch
Type: text/x-patch
Size: 3140 bytes
Desc: not available
Url : http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20060625/41c203c7/attachment-0001.bin 

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [lm-sensors] Patch: hwmon-abituguru-override-bank1detect.patch
  2006-06-25 12:00 [lm-sensors] Patch: hwmon-abituguru-override-bank1detect.patch Hans de Goede
  2006-06-25 18:36 ` [lm-sensors] Patch: hwmon-abituguru-override-bank1detect-doc.patch Hans de Goede
@ 2006-06-26 21:30 ` Jean Delvare
  2006-06-27  6:37 ` Jean Delvare
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Jean Delvare @ 2006-06-26 21:30 UTC (permalink / raw)
  To: lm-sensors

Hi Hans,

> Now that the abituguru driver is seeing some more widespread testing it
> has turned out that one the first generation of Abit uGuru motherboards,
> with uGuru revision 1, the autodetect bank1 sensor type code doesn't
> (always) work.
> 
> Thispatch adds a module param to override the autodetect, and it adds
> validity checks for the value of the 2 other autodetection override
> module params. An example of howto use the new param can be found here:
> http://lm-sensors.org/wiki/Configurations/Abit/AN7
> 
> It would be nice if this patch could be merged before 2.6.18, as without
> it the uguru driver is useless for people with the affected motherboards.

Fine with me, except for:

> --- linux-2.6.17-rc4-mm1.orig/drivers/hwmon/abituguru.c	2006-06-25 13:49:18.000000000 +0200
> +++ linux-2.6.17-rc4-mm1/drivers/hwmon/abituguru.c	2006-06-25 13:51:17.000000000 +0200
> @@ -142,6 +142,14 @@
>  static int force;
>  module_param(force, bool, 0);
>  MODULE_PARM_DESC(force, "Set to one to force detection.");
> +static int bank1_types[16] = { -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
> +	-1, -1, -1, -1 };

This "16" is actually ABIT_UGURU_MAX_BANK1_SENSORS, right?

> +module_param_array(bank1_types, int, NULL, 0);
> +MODULE_PARM_DESC(bank1_types, "Bank1 sensortype autodetection override:\n"
> +	"   -1 autodetect\n"
> +	"    0 volt sensor\n"
> +	"    1 temp sensor\n"
> +	"    2 not connected");

The "-1" is a detail implementation, user-space doesn't need to know
about it.

-- 
Jean Delvare


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [lm-sensors] Patch: hwmon-abituguru-override-bank1detect.patch
  2006-06-25 12:00 [lm-sensors] Patch: hwmon-abituguru-override-bank1detect.patch Hans de Goede
  2006-06-25 18:36 ` [lm-sensors] Patch: hwmon-abituguru-override-bank1detect-doc.patch Hans de Goede
  2006-06-26 21:30 ` [lm-sensors] Patch: hwmon-abituguru-override-bank1detect.patch Jean Delvare
@ 2006-06-27  6:37 ` Jean Delvare
  2006-06-27 12:02 ` Hans de Goede
  2006-06-28 12:12 ` Jean Delvare
  4 siblings, 0 replies; 6+ messages in thread
From: Jean Delvare @ 2006-06-27  6:37 UTC (permalink / raw)
  To: lm-sensors

Quoting myself:
> > +module_param_array(bank1_types, int, NULL, 0);
> > +MODULE_PARM_DESC(bank1_types, "Bank1 sensortype autodetection override:\n"
> > +	"   -1 autodetect\n"
> > +	"    0 volt sensor\n"
> > +	"    1 temp sensor\n"
> > +	"    2 not connected");
> 
> The "-1" is a detail implementation, user-space doesn't need to know
> about it.

I take that back, the user might need to pass -1 if he/she wants to
override some sensor types but leave the others in autodetection mode.

-- 
Jean Delvare


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [lm-sensors] Patch: hwmon-abituguru-override-bank1detect.patch
  2006-06-25 12:00 [lm-sensors] Patch: hwmon-abituguru-override-bank1detect.patch Hans de Goede
                   ` (2 preceding siblings ...)
  2006-06-27  6:37 ` Jean Delvare
@ 2006-06-27 12:02 ` Hans de Goede
  2006-06-28 12:12 ` Jean Delvare
  4 siblings, 0 replies; 6+ messages in thread
From: Hans de Goede @ 2006-06-27 12:02 UTC (permalink / raw)
  To: lm-sensors



Jean Delvare wrote:
> Hi Hans,
> 
>> Now that the abituguru driver is seeing some more widespread testing it
>> has turned out that one the first generation of Abit uGuru motherboards,
>> with uGuru revision 1, the autodetect bank1 sensor type code doesn't
>> (always) work.
>>
>> Thispatch adds a module param to override the autodetect, and it adds
>> validity checks for the value of the 2 other autodetection override
>> module params. An example of howto use the new param can be found here:
>> http://lm-sensors.org/wiki/Configurations/Abit/AN7
>>
>> It would be nice if this patch could be merged before 2.6.18, as without
>> it the uguru driver is useless for people with the affected motherboards.
> 
> Fine with me, except for:
> 
>> --- linux-2.6.17-rc4-mm1.orig/drivers/hwmon/abituguru.c	2006-06-25 13:49:18.000000000 +0200
>> +++ linux-2.6.17-rc4-mm1/drivers/hwmon/abituguru.c	2006-06-25 13:51:17.000000000 +0200
>> @@ -142,6 +142,14 @@
>>  static int force;
>>  module_param(force, bool, 0);
>>  MODULE_PARM_DESC(force, "Set to one to force detection.");
>> +static int bank1_types[16] = { -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
>> +	-1, -1, -1, -1 };
> 
> This "16" is actually ABIT_UGURU_MAX_BANK1_SENSORS, right?
> 

You're right.

I've attached a new version of the patch with this fixed.

Regards,

Hans
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hwmon-abituguru-override-bank1detect.patch
Type: text/x-patch
Size: 2405 bytes
Desc: not available
Url : http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20060627/aa6dc1f2/attachment.bin 

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [lm-sensors] Patch: hwmon-abituguru-override-bank1detect.patch
  2006-06-25 12:00 [lm-sensors] Patch: hwmon-abituguru-override-bank1detect.patch Hans de Goede
                   ` (3 preceding siblings ...)
  2006-06-27 12:02 ` Hans de Goede
@ 2006-06-28 12:12 ` Jean Delvare
  4 siblings, 0 replies; 6+ messages in thread
From: Jean Delvare @ 2006-06-28 12:12 UTC (permalink / raw)
  To: lm-sensors

Hi Hans,

> You're right.
> 
> I've attached a new version of the patch with this fixed.

Applied, thanks.

-- 
Jean Delvare


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-06-28 12:12 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-25 12:00 [lm-sensors] Patch: hwmon-abituguru-override-bank1detect.patch Hans de Goede
2006-06-25 18:36 ` [lm-sensors] Patch: hwmon-abituguru-override-bank1detect-doc.patch Hans de Goede
2006-06-26 21:30 ` [lm-sensors] Patch: hwmon-abituguru-override-bank1detect.patch Jean Delvare
2006-06-27  6:37 ` Jean Delvare
2006-06-27 12:02 ` Hans de Goede
2006-06-28 12:12 ` Jean Delvare

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.