tty: msm: Update timer handling for interrupt-safe context

Modified timer handling to address recent updates in
del_timer_sync() behavior. The function is not permitted to be invoked
from interrupt context unless the timer is marked with TIMER_IRQSAFE.
To ensure compliance and avoid potential race conditions, the affected
timer is now explicitly marked with TIMER_IRQSAFE.

Change-Id: I5724f4172e6576ba2f0cce5e383d76dbdb0ce637
Signed-off-by: Mandar Mahesh Kamble <maheshka@qti.qualcomm.com>
This commit is contained in:
Mandar Mahesh Kamble 2024-12-11 15:03:38 +05:30 • committed by Zijun Hu
commit 486d7b2d1e

View file

@ -2684,7 +2684,7 @@ static int msm_hs_startup(struct uart_port *uport)
tx->dma_in_flight = false;
MSM_HS_DBG("%s():desc usage flag 0x%lx\n", __func__, rx->queued_flag);
timer_setup(&(tx->tx_timeout_timer),
tx_timeout_handler, 0);
tx_timeout_handler, TIMER_IRQSAFE);
/* Enable reading the current CTS, no harm even if CTS is ignored */
msm_uport->imr_reg |= UARTDM_ISR_CURRENT_CTS_BMSK;