[PATCH 5.12 170/677] serial: stm32: add FIFO flush when port is closed