[PATCH 5.11 151/601] serial: stm32: fix wake-up flag handling