Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 1e276292 authored by Patrick Venture's avatar Patrick Venture Committed by Guenter Roeck
Browse files

hwmon: (aspeed-pwm-tacho) Enable both edge measurement.



The aspeed-pwm-tacho controller supports measuring the fan tach by using
leading, falling, or both edges.  This change allows the driver to
support either of the three configurations and will appropriately modify
the returned tach data.

If the controller is measuring with both edges it can return a value more
quickly to the requestor.  This version of the driver should still take ~1s
to return with an RPM value per fan, however, it can be tuned faster with
double edge counting enabled than without.

I tested this and found the number returned matched what I expected.

Signed-off-by: default avatarPatrick Venture <venture@google.com>
Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent 996cf5a5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment