From: Jiri Slaby Date: Mon, 24 Jan 2022 07:14:28 +0000 (+0100) Subject: serial: fsl_linflexuart: don't call uart_write_wakeup() twice X-Git-Tag: v5.18-rc1~80^2~95 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d88812a8d66617efdb41d787efca0907ccd98716;p=thirdparty%2Flinux.git serial: fsl_linflexuart: don't call uart_write_wakeup() twice linflex_txint() calls linflex_transmit_buffer() which calls uart_write_wakeup(). So there is no point to repeat it in linflex_txint() again -- remove it. Cc: Stefan-gabriel Mirea Signed-off-by: Jiri Slaby Link: https://lore.kernel.org/r/20220124071430.14907-10-jslaby@suse.cz Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/tty/serial/fsl_linflexuart.c b/drivers/tty/serial/fsl_linflexuart.c index 81a04039b6c18..e72cba0857433 100644 --- a/drivers/tty/serial/fsl_linflexuart.c +++ b/drivers/tty/serial/fsl_linflexuart.c @@ -217,10 +217,6 @@ static irqreturn_t linflex_txint(int irq, void *dev_id) } linflex_transmit_buffer(sport); - - if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS) - uart_write_wakeup(sport); - out: spin_unlock_irqrestore(&sport->lock, flags); return IRQ_HANDLED;