Skip to content

Commit 41c95b0

Browse files
Tomas Winklergregkh
authored andcommitted
mei: add also write waiting list to runtime pm blockers
The io callback is clear from write_waitling_list after we receive interrupt from the hw to ack the write completion. We need to wait for this interrupt deliver before we try to enter low power state Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent a1809d3 commit 41c95b0

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

‎drivers/misc/mei/init.c‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -361,13 +361,15 @@ bool mei_write_is_idle(struct mei_device *dev)
361361
{
362362
bool idle = (dev->dev_state == MEI_DEV_ENABLED &&
363363
list_empty(&dev->ctrl_wr_list.list) &&
364-
list_empty(&dev->write_list.list));
364+
list_empty(&dev->write_list.list) &&
365+
list_empty(&dev->write_waiting_list.list));
365366

366-
dev_dbg(dev->dev, "write pg: is idle[%d] state=%s ctrl=%d write=%d\n",
367+
dev_dbg(dev->dev, "write pg: is idle[%d] state=%s ctrl=%01d write=%01d wwait=%01d\n",
367368
idle,
368369
mei_dev_state_str(dev->dev_state),
369370
list_empty(&dev->ctrl_wr_list.list),
370-
list_empty(&dev->write_list.list));
371+
list_empty(&dev->write_list.list),
372+
list_empty(&dev->write_waiting_list.list));
371373

372374
return idle;
373375
}

0 commit comments

Comments
 (0)