serial: stm32: update transmission complete error message in shutdown
authorErwan Le Ray <erwan.leray@foss.st.com>
Wed, 6 Jan 2021 16:22:03 +0000 (17:22 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 7 Jan 2021 15:19:29 +0000 (16:19 +0100)
commitc31c3ea02e218998da19f4cd6b7d86eb6e873df4
treee8751aec5e523e02effa589c6181184f6fe323dc
parent97f3a0850ae42f29a4d19105274f19ceb2902313
serial: stm32: update transmission complete error message in shutdown

The transmission complete error message provides the status of the
ISR_USART_TC bit. This bit, when set, indicates that the transmission
has not been completed.
The bit status indication is not a very understandable information.
The error message sent on console should indicate that the transmission is
not complete, instead of providing USART_TC bit status.
Update the error message and add a comment for better understanding.

Signed-off-by: Erwan Le Ray <erwan.leray@foss.st.com>
Link: https://lore.kernel.org/r/20210106162203.28854-9-erwan.leray@foss.st.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/stm32-usart.c