mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 13:49:24 -04:00
serial: msm_geni_serial: Don't use WARN_ON for console uart
In handler_isr for console uart cases using warn_on for debugging issues will further lead into the spinlock recursion where the interrupt routine holds the spinlock and will try to print log which again needs to acquire the spinlock. To resolve this recursion issue replaced the warn_on with IPC logs for console uart. Change-Id: I6a0a10ff8c14a8ad6c74652f6d4e6e66ffcee13b Signed-off-by: Venkata Manasa Kakarla<venkka@codeaurora.org>
This commit is contained in:
parent
49eff519b8
commit
61e281a286
1 changed files with 6 additions and 1 deletions
|
|
@ -1944,7 +1944,12 @@ static void msm_geni_serial_handle_isr(struct uart_port *uport,
|
|||
geni_write_reg_nolog(s_irq_status, uport->membase,
|
||||
SE_GENI_S_IRQ_CLEAR);
|
||||
if ((m_irq_status & M_ILLEGAL_CMD_EN)) {
|
||||
WARN_ON(1);
|
||||
if (uart_console(uport))
|
||||
IPC_LOG_MSG(msm_port->console_log,
|
||||
"%s.Illegal interrupt. sirq 0x%x mirq:0x%x\n",
|
||||
__func__, s_irq_status, m_irq_status);
|
||||
else
|
||||
WARN_ON(1);
|
||||
goto exit_geni_serial_isr;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue