* [lm-sensors] PATCH: hwmon-fscher-bugfix-control-update.patch
@ 2007-07-22 18:15 Hans de Goede
2007-07-23 20:19 ` Jean Delvare
2007-07-25 2:28 ` Mark M. Hoffman
0 siblings, 2 replies; 3+ messages in thread
From: Hans de Goede @ 2007-07-22 18:15 UTC (permalink / raw)
To: lm-sensors
[-- Attachment #1: Type: text/plain, Size: 326 bytes --]
Mark,
Here is another small fscher bugfix for 2.6.23 merging, this was caught by Jean
while reviewing my other bugfix. The driver was updating its copy of the
control register as if it was clear to write, but its regular read/write.
This patch fixes this.
Signed-off-by: Hans de Goede <j.w.r.degoede@hhs.nl>
Regards,
Hans
[-- Attachment #2: hwmon-fscher-bugfix-control-update.patch --]
[-- Type: text/x-patch, Size: 876 bytes --]
Mark,
Here is another small fscher bugfix for 2.6.23 merging, this was caught by Jean
while reviewing my other bugfix. The driver was updating its copy of the
control register as if it was clear to write, but its regular read/write.
This patch fixes this.
Signed-off-by: Hans de Goede <j.w.r.degoede@hhs.nl>
diff -up linux-2.6.22.x86_64/drivers/hwmon/fscher.c~ linux-2.6.22.x86_64/drivers/hwmon/fscher.c
--- linux-2.6.22.x86_64/drivers/hwmon/fscher.c~ 2007-07-22 20:11:06.000000000 +0200
+++ linux-2.6.22.x86_64/drivers/hwmon/fscher.c 2007-07-22 20:11:06.000000000 +0200
@@ -599,7 +599,7 @@ static ssize_t set_control(struct i2c_cl
unsigned long v = simple_strtoul(buf, NULL, 10) & 0x01;
mutex_lock(&data->update_lock);
- data->global_control &= ~v;
+ data->global_control = v;
fscher_write_value(client, reg, v);
mutex_unlock(&data->update_lock);
return count;
[-- Attachment #3: Type: text/plain, Size: 153 bytes --]
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [lm-sensors] PATCH: hwmon-fscher-bugfix-control-update.patch
2007-07-22 18:15 [lm-sensors] PATCH: hwmon-fscher-bugfix-control-update.patch Hans de Goede
@ 2007-07-23 20:19 ` Jean Delvare
2007-07-25 2:28 ` Mark M. Hoffman
1 sibling, 0 replies; 3+ messages in thread
From: Jean Delvare @ 2007-07-23 20:19 UTC (permalink / raw)
To: lm-sensors
On Sun, 22 Jul 2007 20:15:31 +0200, Hans de Goede wrote:
> Here is another small fscher bugfix for 2.6.23 merging, this was caught by Jean
> while reviewing my other bugfix. The driver was updating its copy of the
> control register as if it was clear to write, but its regular read/write.
> This patch fixes this.
>
> Signed-off-by: Hans de Goede <j.w.r.degoede@hhs.nl>
Acked-by: Jean Delvare <khali@linux-fr.org>
--
Jean Delvare
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [lm-sensors] PATCH: hwmon-fscher-bugfix-control-update.patch
2007-07-22 18:15 [lm-sensors] PATCH: hwmon-fscher-bugfix-control-update.patch Hans de Goede
2007-07-23 20:19 ` Jean Delvare
@ 2007-07-25 2:28 ` Mark M. Hoffman
1 sibling, 0 replies; 3+ messages in thread
From: Mark M. Hoffman @ 2007-07-25 2:28 UTC (permalink / raw)
To: lm-sensors
Hi Hans, Jean:
* Jean Delvare <khali@linux-fr.org> [2007-07-23 22:19:28 +0200]:
> On Sun, 22 Jul 2007 20:15:31 +0200, Hans de Goede wrote:
> > Here is another small fscher bugfix for 2.6.23 merging, this was caught by Jean
> > while reviewing my other bugfix. The driver was updating its copy of the
> > control register as if it was clear to write, but its regular read/write.
> > This patch fixes this.
> >
> > Signed-off-by: Hans de Goede <j.w.r.degoede@hhs.nl>
>
> Acked-by: Jean Delvare <khali@linux-fr.org>
Applied to hwmon-2.6.git/testing, thanks.
--
Mark M. Hoffman
mhoffman@lightlink.com
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-07-25 2:28 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-22 18:15 [lm-sensors] PATCH: hwmon-fscher-bugfix-control-update.patch Hans de Goede
2007-07-23 20:19 ` Jean Delvare
2007-07-25 2:28 ` Mark M. Hoffman
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.