mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-29 22:02:02 +00:00
serial: sc16is7xx: change confusing comment about Tx FIFO
The comment wording can be confusing, as txlen will return the number of bytes available in the FIFO, which can be less than the maximum theoretical Tx FIFO size. Change the comment so that it is unambiguous. Signed-off-by: Hugo Villeneuve <hvilleneuve@dimonoff.com> Link: https://lore.kernel.org/r/20231122175859.3874753-1-hugo@hugovil.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
45a3a8ef81
commit
fffa35a25b
1 changed files with 1 additions and 1 deletions
|
@ -664,7 +664,7 @@ static void sc16is7xx_handle_tx(struct uart_port *port)
|
|||
/* Get length of data pending in circular buffer */
|
||||
to_send = uart_circ_chars_pending(xmit);
|
||||
if (likely(to_send)) {
|
||||
/* Limit to size of TX FIFO */
|
||||
/* Limit to space available in TX FIFO */
|
||||
txlen = sc16is7xx_port_read(port, SC16IS7XX_TXLVL_REG);
|
||||
if (txlen > SC16IS7XX_FIFO_SIZE) {
|
||||
dev_err_ratelimited(port->dev,
|
||||
|
|
Loading…
Reference in a new issue