[ Upstream commit fd5ac974fc25feed084c2d1599d0dddb4e0556bc ]
The ARR (auto reload register) and CMP (compare) registers are
successively written. The status bits to check the update of these
registers are polled together with regmap_read_poll_timeout().
The condition to end the loop may become true, even if one of the register
isn't correctly updated.
So ensure both status bits are set before clearing them.
Fixes:
|
||
---|---|---|
.. | ||
104-quad-8.c | ||
counter.c | ||
ftm-quaddec.c | ||
Kconfig | ||
Makefile | ||
stm32-lptimer-cnt.c | ||
stm32-timer-cnt.c |