From 859ef2ffbfa785d273567467088cc8743f80b5bd Mon Sep 17 00:00:00 2001 From: Alexander Usyskin Date: Sun, 2 Aug 2015 22:20:54 +0300 Subject: mei: me: d0i3: add d0i3 enter/exit state machine Rework mei power gating state machine to support entry and exit to and from D0i3 power state. The choice between legacy and D0i3 routines is conditioned on d0i3_supported flag. The patch introduces warning: drivers/misc/mei/hw-me.c:901:12: warning: ‘mei_me_d0i3_enter’ defined but not used [-Wunused-function] it will go away in consequent patch Signed-off-by: Alexander Usyskin Signed-off-by: Tomas Winkler Signed-off-by: Greg Kroah-Hartman --- drivers/misc/mei/hbm.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'drivers/misc/mei/hbm.c') diff --git a/drivers/misc/mei/hbm.c b/drivers/misc/mei/hbm.c index 21f40ce87ac8..8eec887c8f70 100644 --- a/drivers/misc/mei/hbm.c +++ b/drivers/misc/mei/hbm.c @@ -901,6 +901,17 @@ static int mei_hbm_pg_enter_res(struct mei_device *dev) return 0; } +/** + * mei_hbm_pg_resume - process with PG resume + * + * @dev: the device structure. + */ +void mei_hbm_pg_resume(struct mei_device *dev) +{ + pm_request_resume(dev->dev); +} +EXPORT_SYMBOL_GPL(mei_hbm_pg_resume); + /** * mei_hbm_pg_exit_res - PG exit response received * @@ -930,7 +941,7 @@ static int mei_hbm_pg_exit_res(struct mei_device *dev) * Start runtime pm resume sequence to exit from PG. */ dev->pg_event = MEI_PG_EVENT_RECEIVED; - pm_request_resume(dev->dev); + mei_hbm_pg_resume(dev); break; default: WARN(1, "hbm: pg exit response: unexpected pg event = %d\n", -- cgit v1.2.3-55-g7522