summaryrefslogtreecommitdiffstats
path: root/drivers/mfd/ntxec.c
diff options
context:
space:
mode:
authorFabrice Gasnier <fabrice.gasnier@foss.st.com>2021-03-03 18:51:35 +0100
committerLee Jones <lee.jones@linaro.org>2021-04-14 16:06:26 +0100
commit4917e498c6894ba077867aff78f82cffd5ffbb5c (patch)
treeb40567d1beb9ffc9bdbc800e15f52e0de9c57bcb /drivers/mfd/ntxec.c
parent10d82ade4fa7dd032b60fc6ba76cd587b276608e (diff)
downloadlinux-4917e498c6894ba077867aff78f82cffd5ffbb5c.tar.bz2
mfd: stm32-timers: Avoid clearing auto reload register
The ARR register is cleared unconditionally upon probing, after the maximum value has been read. This initial condition is rather not intuitive, when considering the counter child driver. It rather expects the maximum value by default: - The counter interface shows a zero value by default for 'ceiling' attribute. - Enabling the counter without any prior configuration makes it doesn't count. The reset value of ARR register is the maximum. So Choice here is to backup it, and restore it then, instead of clearing its value. It also fixes the initial condition seen by the counter driver. Fixes: d0f949e220fd ("mfd: Add STM32 Timers driver") Signed-off-by: Fabrice Gasnier <fabrice.gasnier@foss.st.com> Acked-by: William Breathitt Gray <vilhelm.gray@gmail.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd/ntxec.c')
0 files changed, 0 insertions, 0 deletions