[PATCH 5.15 478/731] counter: stm32-lptimer-cnt: fix the check on arr and cmp registers update