aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc/mei/hbm.c
diff options
context:
space:
mode:
authorTomas Winkler <tomas.winkler@intel.com>2014-03-18 16:52:02 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-05-03 19:20:24 -0400
commit180ea05bcedbd67bb22a426bb8d831075727e34a (patch)
tree05e5918348bc422a5df912204b6f8c36f44c3e13 /drivers/misc/mei/hbm.c
parenta532bbedc85ff3b834ba81e49163a3f543be1775 (diff)
mei: me: add runtime pm framework
Add runtime pm framework for ME devices. The runtime pm handlers are used to run me power gating isolation protocol Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Signed-off-by: Alexander Usyskin <alexander.usyskin@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/mei/hbm.c')
-rw-r--r--drivers/misc/mei/hbm.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/misc/mei/hbm.c b/drivers/misc/mei/hbm.c
index a725365e2150..b9a4bb5921f1 100644
--- a/drivers/misc/mei/hbm.c
+++ b/drivers/misc/mei/hbm.c
@@ -19,6 +19,7 @@
19#include <linux/sched.h> 19#include <linux/sched.h>
20#include <linux/wait.h> 20#include <linux/wait.h>
21#include <linux/mei.h> 21#include <linux/mei.h>
22#include <linux/pm_runtime.h>
22 23
23#include "mei_dev.h" 24#include "mei_dev.h"
24#include "hbm.h" 25#include "hbm.h"
@@ -742,6 +743,13 @@ int mei_hbm_dispatch(struct mei_device *dev, struct mei_msg_hdr *hdr)
742 dev->pg_event = MEI_PG_EVENT_RECEIVED; 743 dev->pg_event = MEI_PG_EVENT_RECEIVED;
743 if (waitqueue_active(&dev->wait_pg)) 744 if (waitqueue_active(&dev->wait_pg))
744 wake_up(&dev->wait_pg); 745 wake_up(&dev->wait_pg);
746 else
747 /*
748 * If the driver is not waiting on this then
749 * this is HW initiated exit from PG.
750 * Start runtime pm resume sequence to exit from PG.
751 */
752 pm_request_resume(&dev->pdev->dev);
745 break; 753 break;
746 754
747 case HOST_CLIENT_PROPERTIES_RES_CMD: 755 case HOST_CLIENT_PROPERTIES_RES_CMD: