[PATCH 5.4 298/658] counter: stm32-lptimer-cnt: fix the check on arr and cmp registers update