Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f4e921e6 authored by Arumuga Durai A's avatar Arumuga Durai A
Browse files

USB: dwc3: Fix spinlock recursion



As dwc3-interrupt() handles the interrupts on usb irq runs
in threaded context, which acquires the spin_lock without
disable local irq. When interrupt for transfer completion
event comes on the same CPU for the data transfer queued
to dwc3 by gsmd_start_rx() reacquires the lock results
in spinlock recursion. Fix this by changing
spin_lock/unlock() to spin_lock_irqsave/unlock_irqrestore().

CRs-Fixed: 1088909
Change-Id: I34b1ba5af355bf8d7919aac5ff248d8edaa89c22
Signed-off-by: default avatarArumuga Durai A <cadurai@codeaurora.org>
parent e5c91c68
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment