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

Skip to content
Commit c4c5210b authored by Jack Pham's avatar Jack Pham
Browse files

usb: dwc3-msm: Prevent suspend during pwr_event_handler



While a pwr event IRQ can arrive asynchronously, the handler
takes care to only call dwc3_pwr_event_handler() when not in
LPM mode since the core clock needs to be on to access the
status registers. However, this doesn't account for concurrent
runtime PM occurring which could still result in an unclocked
access if suspend completes before pwr_event_handler() does.
Prevent a premature suspend by temporarily incrementing the
runtime PM count at the beginning of pwr_event_handler() and
calling put() when done.

Change-Id: I0d0d26445c5ff0f7c7a3fc51862e4fa8a1ff7d6e
Signed-off-by: default avatarJack Pham <jackp@codeaurora.org>
parent 4fc51d05
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