forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/drivers/usb/chipidea/otg_fsm.c
....@@ -256,8 +256,10 @@
256256 ci->enabled_otg_timer_bits &= ~(1 << t);
257257 if (ci->next_otg_timer == t) {
258258 if (ci->enabled_otg_timer_bits == 0) {
259
+ spin_unlock_irqrestore(&ci->lock, flags);
259260 /* No enabled timers after delete it */
260261 hrtimer_cancel(&ci->otg_fsm_hrtimer);
262
+ spin_lock_irqsave(&ci->lock, flags);
261263 ci->next_otg_timer = NUM_OTG_FSM_TIMERS;
262264 } else {
263265 /* Find the next timer */