[PATCH 5.10 374/783] counter: stm32-lptimer-cnt: fix the check on arr and cmp registers update