Skip to content

Commit

Permalink
mei: request autosuspend after sending rx flow control
Browse files Browse the repository at this point in the history
A rx flow control waiting in the control queue may block autosuspend.
Re-request autosuspend after flow control been sent to unblock
the transition to the low power state.

Cc: <[email protected]>
Signed-off-by: Alexander Usyskin <[email protected]>
Signed-off-by: Tomas Winkler <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
ausyskin authored and gregkh committed May 27, 2021
1 parent 022b93c commit bbf0a94
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/misc/mei/interrupt.c
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,9 @@ static int mei_cl_irq_read(struct mei_cl *cl, struct mei_cl_cb *cb,
return ret;
}

pm_runtime_mark_last_busy(dev->dev);
pm_request_autosuspend(dev->dev);

list_move_tail(&cb->list, &cl->rd_pending);

return 0;
Expand Down

0 comments on commit bbf0a94

Please sign in to comment.