Skip to contentSkip to conversation

hwmon: (aspeed-pwm-tacho) reduce fan_tach period

PATCH Superseded Patrick Venture 2 participants 4 messages Jun 23, 2017

Subsystems (2)

v2 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/2 hwmon: (aspeed-pwm-tacho) reduce fan_tach period

Reduce the fan_tach period such that the fan controller uses a shorter period to measure the rpm.

Testing: Tested on an ast2400 sitting on a quanta-q71l.

---
 drivers/hwmon/aspeed-pwm-tacho.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hwmon/aspeed-pwm-tacho.c +1 -1
index 86e2ea8287a7..b2ab5612d8a4 100644
@@ -160,7 +160,7 @@
  * 11: reserved.
  */
 #define M_TACH_MODE 0x02 /* 10b */
-#define M_TACH_UNIT 0x1000
+#define M_TACH_UNIT 0x00c0
 #define INIT_FAN_CTRL 0xFF
 
 struct aspeed_pwm_tacho_data {
Signature · 1 line
2.13.1.611.g7e3b11ae1-goog
maintainer
#1 lore raw
Quoted 6 lines · Patrick Venture

Reduce the fan_tach period such that the fan controller uses a shorter period to measure the rpm.

Testing: Tested on an ast2400 sitting on a quanta-q71l.

Please provide change logs, and keep version numbers consistent for a series even if one patch doesn't change.

Now I'll have to go back, find the flurry of older versions, and try to find out what changed and why. This takes time which I don't have. I'll probably only get to this after the next commit window, sorry.

Guenter

Quoted 20 lines
---
 drivers/hwmon/aspeed-pwm-tacho.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hwmon/aspeed-pwm-tacho.c +1 -1
index 86e2ea8287a7..b2ab5612d8a4 100644
@@ -160,7 +160,7 @@
  * 11: reserved.
  */
 #define M_TACH_MODE 0x02 /* 10b */
-#define M_TACH_UNIT 0x1000
+#define M_TACH_UNIT 0x00c0
 #define INIT_FAN_CTRL 0xFF
 
 struct aspeed_pwm_tacho_data {
Signature · 1 line
2.13.1.611.g7e3b11ae1-goog
#2 lore raw

I changed the commit message. Since you said you never received this patch, it was prudent to resend it. However, since I had sent it and you said you didn't receive it, I assumed it was being merged with the previous patch that had been before using a patch-set was required. So I modified the commit message so I could bump the version so you'd likely see it this time; whereas before it was getting clumped with the previous fodder.

I was deliberately trying to be helpful. I didn't know you needed the history and couldn't just use the latest patch version.

Patrick

Quoted 39 lines · Guenter Roeck
Quoted 6 lines · Patrick Venture

Reduce the fan_tach period such that the fan controller uses a shorter period to measure the rpm.

Testing: Tested on an ast2400 sitting on a quanta-q71l.

Please provide change logs, and keep version numbers consistent for a series even if one patch doesn't change.

Now I'll have to go back, find the flurry of older versions, and try to find out what changed and why. This takes time which I don't have. I'll probably only get to this after the next commit window, sorry.

Guenter

Review

Quoted 5 lines
---
 drivers/hwmon/aspeed-pwm-tacho.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
(quoted diff) +0 -0

b/drivers/hwmon/aspeed-pwm-tacho.c

Quoted 15 lines

index 86e2ea8287a7..b2ab5612d8a4 100644

drivers/hwmon/aspeed-pwm-tacho.c +1 -2
@@ -160,7 +160,7 @@
  * 11: reserved.
  */
 #define M_TACH_MODE 0x02 /* 10b */
-#define M_TACH_UNIT 0x1000
+#define M_TACH_UNIT 0x00c0
 #define INIT_FAN_CTRL 0xFF
 
 struct aspeed_pwm_tacho_data {
--

2.13.1.611.g7e3b11ae1-goog

maintainer
#3 lore raw
Quoted 10 lines · Patrick Venture

I changed the commit message. Since you said you never received this patch, it was prudent to resend it. However, since I had sent it and you said you didn't receive it, I assumed it was being merged with the previous patch that had been before using a patch-set was required. So I modified the commit message so I could bump the version so you'd likely see it this time; whereas before it was getting clumped with the previous fodder.

I was deliberately trying to be helpful. I didn't know you needed the history and couldn't just use the latest patch version.

2/2 does not have a change log either.

Quoted 43 lines

Patrick

Quoted 39 lines · Guenter Roeck
Quoted 6 lines · Patrick Venture

Reduce the fan_tach period such that the fan controller uses a shorter period to measure the rpm.

Testing: Tested on an ast2400 sitting on a quanta-q71l.

Please provide change logs, and keep version numbers consistent for a series even if one patch doesn't change.

Now I'll have to go back, find the flurry of older versions, and try to find out what changed and why. This takes time which I don't have. I'll probably only get to this after the next commit window, sorry.

Guenter

Review

Quoted 5 lines
---
 drivers/hwmon/aspeed-pwm-tacho.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
(quoted diff) +0 -0

b/drivers/hwmon/aspeed-pwm-tacho.c

Quoted 15 lines

index 86e2ea8287a7..b2ab5612d8a4 100644

drivers/hwmon/aspeed-pwm-tacho.c +1 -2
@@ -160,7 +160,7 @@
  * 11: reserved.
  */
 #define M_TACH_MODE 0x02 /* 10b */
-#define M_TACH_UNIT 0x1000
+#define M_TACH_UNIT 0x00c0
 #define INIT_FAN_CTRL 0xFF
 
 struct aspeed_pwm_tacho_data {
--

2.13.1.611.g7e3b11ae1-goog