Skip to contentSkip to conversation

hwmon: (f75375s) Fix reading of wrong register when initializing the F75387

PATCH Applied Nikolaus Schulz 3 participants 7 messages Feb 8, 2012 – Feb 9, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 2/4 hwmon: (f75375s) Fix reading of wrong register when initializing the F75387

From: Nikolaus Schulz <[email protected]>

Unlike the other chips supported by this driver, the F75387 stores the pwm_mode in register F75375_REG_FAN_TIMER, not F75375_REG_CONFIG1.

---
 drivers/hwmon/f75375s.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/hwmon/f75375s.c +1 -1
index c81ad45..b3eef44 100644
@@ -723,7 +723,7 @@ static void f75375_init(struct i2c_client *client, struct f75375_data *data,
 			if (data->kind = f75387) {
 				bool manu, duty;
 
-				if (!(conf & (1 << F75387_FAN_CTRL_LINEAR(nr))))
+				if (!(mode & (1 << F75387_FAN_CTRL_LINEAR(nr))))
 					data->pwm_mode[nr] = 1;
 
 				manu = ((mode >> F75387_FAN_MANU_MODE(nr)) & 1);
Signature · 7 lines
1.7.9


_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
#1 lore raw

Re: [lm-sensors] [PATCH 2/4] hwmon: (f75375s) Fix reading of wrong register when initializing the F7

Quoted 16 lines · Nikolaus Schulz

From: Nikolaus Schulz <[email protected]>

Unlike the other chips supported by this driver, the F75387 stores the pwm_mode in register F75375_REG_FAN_TIMER, not F75375_REG_CONFIG1.

---
 drivers/hwmon/f75375s.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/hwmon/f75375s.c +0 -0
index c81ad45..b3eef44 100644

drivers/hwmon/f75375s.c static void f75375_init(struct i2c_client *client, struct f75375_data *data, · line 729

Quoted 8 lines
drivers/hwmon/f75375s.c +1 -1
@@ -723,7 +723,7 @@ static void f75375_init(struct i2c_client *client, struct f75375_data *data,
 			if (data->kind = f75387) {
 				bool manu, duty;
 
-				if (!(conf & (1 << F75387_FAN_CTRL_LINEAR(nr))))
+				if (!(mode & (1 << F75387_FAN_CTRL_LINEAR(nr))))
 					data->pwm_mode[nr] = 1;
 
 				manu = ((mode >> F75387_FAN_MANU_MODE(nr)) & 1);

Applied.

This code was only added for 3.3, so the patch does not apply to stable, only to 3.3-rc.

Thanks,
Guenter

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

#2 lore raw

Re: [lm-sensors] [PATCH 2/4] hwmon: (f75375s) Fix reading of wrong register when initializing the F7

In reply to Nikolaus Schulz
Quoted 2 lines · Guenter Roeck

This code was only added for 3.3, so the patch does not apply to stable, only to 3.3-rc.

Ah, indeed, I missed that.

Thanks,
Nikolaus

PS. Hmm, I don't see my patch emails appear on the lm-sensors list, only the introductionary one. I wonder what's wrong?

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

#3 lore raw

Re: [lm-sensors] [PATCH 2/4] hwmon: (f75375s) Fix reading of wrong register when initializing the F7

In reply to Nikolaus Schulz
Quoted 11 lines · Nikolaus Schulz
Quoted 2 lines · Guenter Roeck

This code was only added for 3.3, so the patch does not apply to stable, only to 3.3-rc.

Ah, indeed, I missed that.

Thanks,
Nikolaus

PS. Hmm, I don't see my patch emails appear on the lm-sensors list, only the introductionary one. I wonder what's wrong?

As far as I know, gmane only stores an email once if it is sent to multiple lists. Kind of annoying, but happens on a quite regular basis.

Guenter

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

#4 lore raw

Re: [lm-sensors] [PATCH 2/4] hwmon: (f75375s) Fix reading of wrong register when initializing the F7

In reply to Nikolaus Schulz
Quoted 2 lines · Nikolaus Schulz

PS. Hmm, I don't see my patch emails appear on the lm-sensors list, only the introductionary one. I wonder what's wrong?

I see everything:
http://lists.lm-sensors.org/pipermail/lm-sensors/2012-February/thread.html

Signature · 6 lines
Jean Delvare

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
#5 lore raw

Re: [lm-sensors] [PATCH 2/4] hwmon: (f75375s) Fix reading of wrong register when initializing the F7

In reply to Nikolaus Schulz
Quoted 7 lines · Jean Delvare
Quoted 2 lines · Nikolaus Schulz

PS. Hmm, I don't see my patch emails appear on the lm-sensors list, only the introductionary one. I wonder what's wrong?

I see everything:
http://lists.lm-sensors.org/pipermail/lm-sensors/2012-February/thread.html

I think dropping some posts is a gmane specialty.

Guenter

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

#6 lore raw

Re: [lm-sensors] [PATCH 2/4] hwmon: (f75375s) Fix reading of wrong register when initializing the F7

In reply to Nikolaus Schulz
Quoted 6 lines · Jean Delvare
Quoted 2 lines · Nikolaus Schulz

PS. Hmm, I don't see my patch emails appear on the lm-sensors list, only the introductionary one. I wonder what's wrong?

I see everything:
http://lists.lm-sensors.org/pipermail/lm-sensors/2012-February/thread.html

Oh, nevermind, found it: it's mailman avoiding duplicate emails, since I was already in the email recipient list. Sorry for the noise.

Nikolaus

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors