mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-05 19:31:57 -04:00
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:
parent
f1b974d142
commit
486d7b2d1e
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue