usb: gadget: gsi: Avoid spinlock lockup
In this case gsi_ctrl_clear_cpkt_queues function is called which is holding spinlock and in the meantime dwc3_interrupt occurred on same CPU which in turn is calling gsi_ctrl_clear_cpkt_queues function and it is trying to acquire the same spinlock causing deadlock. This change disables the interrupts when spinlock is acquired in gsi_ctrl_clear_cpkt_queues function. Change-Id: Ia87a0a283ca6b6298083dddb448e4d649a4f8e89 Signed-off-by:Pratham Pratap <prathampratap@codeaurora.org> Signed-off-by:
Ajay Agarwal <ajaya@codeaurora.org>
Loading
Please register or sign in to comment