diff options
author | Alexander Usyskin <alexander.usyskin@intel.com> | 2021-05-26 22:33:34 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-06-03 08:59:03 +0200 |
commit | 12fb557863f8c098ac1c7a163f4bd930a419702b (patch) | |
tree | 6d11712ae2770fb4308cb53324885663a6c3aa43 /drivers/misc | |
parent | eb78fa5a3815a721e2508738ba4a442c9c037365 (diff) | |
download | linux-stable-12fb557863f8c098ac1c7a163f4bd930a419702b.tar.gz linux-stable-12fb557863f8c098ac1c7a163f4bd930a419702b.tar.bz2 linux-stable-12fb557863f8c098ac1c7a163f4bd930a419702b.zip |
mei: request autosuspend after sending rx flow control
commit bbf0a94744edfeee298e4a9ab6fd694d639a5cdf upstream.
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: <stable@vger.kernel.org>
Signed-off-by: Alexander Usyskin <alexander.usyskin@intel.com>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Link: https://lore.kernel.org/r/20210526193334.445759-1-tomas.winkler@intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc')
-rw-r--r-- | drivers/misc/mei/interrupt.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/misc/mei/interrupt.c b/drivers/misc/mei/interrupt.c index c70a8c74cc57..a70d989032c1 100644 --- a/drivers/misc/mei/interrupt.c +++ b/drivers/misc/mei/interrupt.c @@ -222,6 +222,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; |