]> git.sur5r.net Git - groeck-it87/commit
Update pwm cached control registers before writing pwm enable
authorGuenter Roeck <linux@roeck-us.net>
Sun, 3 Sep 2017 20:58:47 +0000 (13:58 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Sun, 3 Sep 2017 21:01:47 +0000 (14:01 -0700)
commit21b0f8cf1ec7aef9a6ee8afaf97cadd15ecb8f2e
treed899608d993de56d8bc4243c3c130b4338bd59ba
parentb9deb7cb414069672ccadbc934322db50ed168c2
Update pwm cached control registers before writing pwm enable

If pwmX_enable is written prior to displaying any attributes,
t87_update_pwm_ctrl() is never called, and the cached pwm registers
are never read before written. This results in bad values written
into various registers, and can result in operational failures.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
it87.c