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

Skip to content
Commit a673bfcd authored by Jack Pham's avatar Jack Pham Committed by Stephen Boyd
Browse files

usb: msm_otg: disable IRQ during resume



On targets supporting the secondary low-power mode interrupt,
when it is fired it will trigger the resume sequence. During
this time as the controller is being brought out of suspend,
the normal USB interrupt may also fire before we have finished
with the routine, and in the interrupt handler would overwrite
the variable that recorded the first interrupt. This will lead
to unbalanced enable_irq/disable_irq calls and subsequent
interrupts will be inadvertently ignored.

A simple fix is to disable the USB IRQ for the duration of the
resume sequence, and re-enable it right before exiting.

Change-Id: Ia24a1adbe45b490a9606e75ac551f9286face8dd
Signed-off-by: default avatarJack Pham <jackp@codeaurora.org>
parent 3fd450a3
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