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

Commit 80c2ae83 authored by Lena Salman's avatar Lena Salman Committed by Gerrit - the friendly Code Review server
Browse files

drivers: usb: dwc3: Remove xfer timer when going to suspend



When in the middle of processing bulk transfers we get a
suspend event, we still continue to arm the bulk transfer timer
because we didn't finish the bulk transfer.
However we are going to suspend initiated by the host (sleep),
and the device does go to LPM thus causing the transfer_complete
function running when clocks are off and resulting in unclocked access.
This patch makes sure we do pm_runtime_get the device before
accessing registers, and doesn't arm the timer again when we are
in suspend state.

CRs-fixed: 746587
Change-Id: I9491e360cd2ea29d569e2a8a7da771f29ec946b3
Signed-off-by: default avatarLena Salman <esalman@codeaurora.org>
parent f1a9f6d4
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