Skip to content

Commit c7eb1c7

Browse files
kerneltoastDhineshCool
authored andcommitted
msm_geni_serial: Make IRQ handler explicitly threaded
The uart_port lock is a sleepable spin lock which would require many invasive changes to convert it to a raw spin lock so that it'd be safe to use from hard IRQ context on RT. Instead of doing that, just make the GENI UART IRQ handler explicitly threaded to fix the issue. Signed-off-by: Sultan Alsawaf <sultan@kerneltoast.com> Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
1 parent 266fcab commit c7eb1c7

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

drivers/tty/serial/msm_geni_serial.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2385,7 +2385,8 @@ static int msm_geni_serial_startup(struct uart_port *uport)
23852385
enable_irq(uport->irq);
23862386

23872387
if (msm_port->wakeup_irq > 0) {
2388-
ret = request_irq(msm_port->wakeup_irq, msm_geni_wakeup_isr,
2388+
ret = request_threaded_irq(msm_port->wakeup_irq, NULL,
2389+
msm_geni_wakeup_isr,
23892390
IRQF_TRIGGER_FALLING | IRQF_ONESHOT,
23902391
"hs_uart_wakeup", uport);
23912392
if (unlikely(ret)) {

0 commit comments

Comments
 (0)