fiq_debugger: fix bug when RT linux is enabled

Set debugger irq to IRQF_NO_THREAD, or irq handler calls get_irq_regs(),
and return null.

Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
Change-Id: Ic61d2bb2d233e74a2028405b80075eefabd0a9a1
This commit is contained in:
Huibin Hong
2025-08-13 17:47:44 +08:00
committed by Tao Huang
parent c538ed9ce6
commit 61a1da7a08

View File

@@ -1566,7 +1566,7 @@ static int fiq_debugger_probe(struct platform_device *pdev)
pr_err("%s: could not install nmi irq handler\n", __func__);
irq_clear_status_flags(state->uart_irq, IRQ_NOAUTOEN);
ret = request_irq(state->uart_irq, fiq_debugger_uart_irq,
IRQF_NO_SUSPEND | IRQF_NOBALANCING, "debug", state);
IRQF_NO_SUSPEND | IRQF_NOBALANCING | IRQF_NO_THREAD, "debug", state);
} else {
enable_nmi(state->uart_irq);
}