]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
hwmon: (aspeed-pwm-tacho) Poll with short sleeps.
authorPatrick Venture <venture@google.com>
Sat, 24 Jun 2017 03:39:56 +0000 (20:39 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Sat, 24 Jun 2017 15:58:06 +0000 (08:58 -0700)
commit44b413661b57cbbb7e4c3adf7b087fada42a443e
tree24b07c51801aa75770ab8c92266472215d899e51
parentece0c03a9e5f727435d19754411e59c3ae28cbb8
hwmon: (aspeed-pwm-tacho) Poll with short sleeps.

The reference driver polled but mentioned it was possible to sleep
for a computed period to know when it's ready to read.  However, polling
with minimal sleeps is quick and works.  This also improves responsiveness
from the driver.

Testing: tested on ast2400 on quanta-q71l

Signed-off-by: Patrick Venture <venture@google.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/aspeed-pwm-tacho.c