summaryrefslogtreecommitdiffstats
path: root/debian/patches-rt/0013-serial-pch-Invoke-handle_rx_to-directly.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches-rt/0013-serial-pch-Invoke-handle_rx_to-directly.patch')
-rw-r--r--debian/patches-rt/0013-serial-pch-Invoke-handle_rx_to-directly.patch39
1 files changed, 39 insertions, 0 deletions
diff --git a/debian/patches-rt/0013-serial-pch-Invoke-handle_rx_to-directly.patch b/debian/patches-rt/0013-serial-pch-Invoke-handle_rx_to-directly.patch
new file mode 100644
index 000000000..436fb4e55
--- /dev/null
+++ b/debian/patches-rt/0013-serial-pch-Invoke-handle_rx_to-directly.patch
@@ -0,0 +1,39 @@
+From: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
+Date: Fri, 1 Mar 2024 22:45:26 +0100
+Subject: [PATCH 13/18] serial: pch: Invoke handle_rx_to() directly.
+Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/6.8/older/patches-6.8.2-rt11.tar.xz
+
+handle_rx() is only a wrapper around handle_rx_to() without any
+additional functionality.
+
+Invoke handle_rx_to() directly and remove handle_rx().
+
+Link: https://lore.kernel.org/r/20240301215246.891055-14-bigeasy@linutronix.de
+Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
+---
+ drivers/tty/serial/pch_uart.c | 7 +------
+ 1 file changed, 1 insertion(+), 6 deletions(-)
+
+--- a/drivers/tty/serial/pch_uart.c
++++ b/drivers/tty/serial/pch_uart.c
+@@ -778,11 +778,6 @@ static int handle_rx_to(struct eg20t_por
+ return PCH_UART_HANDLED_RX_INT;
+ }
+
+-static int handle_rx(struct eg20t_port *priv)
+-{
+- return handle_rx_to(priv);
+-}
+-
+ static int dma_handle_rx(struct eg20t_port *priv)
+ {
+ struct uart_port *port = &priv->port;
+@@ -1051,7 +1046,7 @@ static irqreturn_t pch_uart_interrupt(in
+ PCH_UART_HAL_RX_INT |
+ PCH_UART_HAL_RX_ERR_INT);
+ } else {
+- ret = handle_rx(priv);
++ ret = handle_rx_to(priv);
+ }
+ break;
+ case PCH_UART_IID_RDR_TO: /* Received Data Ready