summaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-10-02 08:17:05 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-10-02 08:17:05 +0200
commit45a1c8dfa28a0b8b6954d5905bee04877d2ad548 (patch)
tree89daea9f4cce0aef81202a979ed767e498aeca61 /drivers/tty/serial
parentc980248179d655d33af47f0b0bec1ce8660994c6 (diff)
parent8a749fd1a8720d4619c91c8b6e7528c0a355c0aa (diff)
downloadlinux-stable-45a1c8dfa28a0b8b6954d5905bee04877d2ad548.tar.gz
linux-stable-45a1c8dfa28a0b8b6954d5905bee04877d2ad548.tar.bz2
linux-stable-45a1c8dfa28a0b8b6954d5905bee04877d2ad548.zip
Merge 6.6-rc4 into tty-next
We need the tty fixes in here as well for testing and to base changes on. Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial')
-rw-r--r--drivers/tty/serial/8250/8250_port.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/tty/serial/8250/8250_port.c b/drivers/tty/serial/8250/8250_port.c
index 41d0ce7d0cfd..925ee1d61afb 100644
--- a/drivers/tty/serial/8250/8250_port.c
+++ b/drivers/tty/serial/8250/8250_port.c
@@ -1935,7 +1935,10 @@ int serial8250_handle_irq(struct uart_port *port, unsigned int iir)
skip_rx = true;
if (status & (UART_LSR_DR | UART_LSR_BI) && !skip_rx) {
- if (irqd_is_wakeup_set(irq_get_irq_data(port->irq)))
+ struct irq_data *d;
+
+ d = irq_get_irq_data(port->irq);
+ if (d && irqd_is_wakeup_set(d))
pm_wakeup_event(tport->tty->dev, 0);
if (!up->dma || handle_rx_dma(up, iir))
status = serial8250_rx_chars(up, status);