[PATCH 5.10 136/530] serial: stm32: fix wake-up flag handling