[PATCH 5.12 164/677] serial: stm32: fix wake-up flag handling