Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
serial: stm32: add FIFO flush when port is closed
Transmission complete error is sent when ISR_TC is not set. If port closure is requested despite data in TDR / TX FIFO has not been sent (because of flow control), ISR_TC is not set and error message is sent on port closure but also when a new port is opened. Flush the data when port is closed, and send the transmission complete error message only when ISR_TC is not set and TDR / TX FIFO is not empty. Signed-off-by: Erwan Le Ray <[email protected]> Change-Id: I30c4cc1535d3a7bc1e8acd25b003f31fb555cd78 Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/linux-stm32/+/181423 Reviewed-by: CITOOLS <[email protected]> Reviewed-by: CIBUILD <[email protected]> Reviewed-by: Fabrice GASNIER <[email protected]>
- Loading branch information