Skip to content

Commit

Permalink
mei: add also write waiting list to runtime pm blockers
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Tomas Winkler authored and Greg Kroah-Hartman committed May 24, 2015
1 parent a1809d3 commit 41c95b0
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions drivers/misc/mei/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -361,13 +361,15 @@ bool mei_write_is_idle(struct mei_device *dev)
{
bool idle = (dev->dev_state == MEI_DEV_ENABLED &&
list_empty(&dev->ctrl_wr_list.list) &&
list_empty(&dev->write_list.list));
list_empty(&dev->write_list.list) &&
list_empty(&dev->write_waiting_list.list));

dev_dbg(dev->dev, "write pg: is idle[%d] state=%s ctrl=%d write=%d\n",
dev_dbg(dev->dev, "write pg: is idle[%d] state=%s ctrl=%01d write=%01d wwait=%01d\n",
idle,
mei_dev_state_str(dev->dev_state),
list_empty(&dev->ctrl_wr_list.list),
list_empty(&dev->write_list.list));
list_empty(&dev->write_list.list),
list_empty(&dev->write_waiting_list.list));

return idle;
}
Expand Down

0 comments on commit 41c95b0

Please sign in to comment.