]> asedeno.scripts.mit.edu Git - linux.git/commit
serial: stm32: update PIO transmission
authorErwan Le Ray <erwan.leray@st.com>
Tue, 18 Jun 2019 10:02:23 +0000 (12:02 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Jun 2019 09:17:36 +0000 (11:17 +0200)
commit5d9176edacc29cadb9a0b52c8aaba67ce5ff4ed4
treee46c06578e457eba410545d103a76a20bcc5c9c1
parent4cc0ed626f2ba36cd008d4b380613f0360133891
serial: stm32: update PIO transmission

Improves PIO transmission:
- Replaces the FIFO filling per character by a filling per blocks of
  characters, which provides better performances
- Replaces the active waiting loop by TX empty interrupt dynamic handling.
  TXE interrupt is now enabled when data has to be sent (ie when
  uart_circ is not empty), and inhibited when there is no more data to
  send (ie when uart_circ is empty).

Signed-off-by: Erwan Le Ray <erwan.leray@st.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/stm32-usart.c