]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (adm1029) Ensure the fan_div cache is updated in set_fan_div
authorAxel Lin <axel.lin@ingics.com>
Wed, 2 Jul 2014 00:29:55 +0000 (08:29 +0800)
committerGuenter Roeck <linux@roeck-us.net>
Thu, 3 Jul 2014 16:45:17 +0000 (09:45 -0700)
commit78b7d1136560ddad3115f237621f94f89479ce59
treeaa2be34ac6b4bdf39f41dadb4bba97848624dfe9
parentcdcdb794ac16f454483f79cf07cb68ffff1e7e17
hwmon: (adm1029) Ensure the fan_div cache is updated in set_fan_div

Writing to fanX_div does not clear the cache. As a result, reading
from fanX_div may return the old value for up to two seconds
after writing a new value.

This patch ensures the fan_div cache is updated in set_fan_div().

Reported-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Cc: stable@vger.kernel.org
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/adm1029.c