Re: [RFT 00/15] tty: serial: switch from circ_buf to kfifo

From: Richard Genoud
Date: Wed Mar 27 2024 - 12:13:39 EST


Le 19/03/2024 à 10:52, Jiri Slaby (SUSE) a écrit :
This series switches tty serial layer to use kfifo instead of circ_buf.
Excerpt from the switching patch:
"""
Switch from struct circ_buf to proper kfifo. kfifo provides much better
API, esp. when wrap-around of the buffer needs to be taken into account.
Look at pl011_dma_tx_refill() or cpm_uart_tx_pump() changes for example.

Kfifo API can also fill in scatter-gather DMA structures, so it easier
for that use case too. Look at lpuart_dma_tx() for example. Note that
not all drivers can be converted to that (like atmel_serial), they
handle DMA specially.

Note that usb-serial uses kfifo for TX for ages.
"""

This is Request for Testing as I cannot test all the changes
(obviously). So please test your HW's serial properly.

Tested-by: Richard Genoud <richard.genoud@xxxxxxxxx> # on at91sam9g20-ek sama5d3_xplained and sama5d2_xplained