Skip to content

Commit 9f46393

Browse files
ausyskingregkh
authored andcommitted
mei: me: set internal pg flag to off on hardware reset
Link reset flow is always performed in the runtime resumed state. The internal PG state may be left as ON after the suspend and will not be updated upon the resume if the D0i3 is not supported. Ensure that the internal PG state is set to the right value on the flow entrance in case the firmware does not support D0i3. Signed-off-by: Alexander Usyskin <[email protected]> Signed-off-by: Tomas Winkler <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent bd476c1 commit 9f46393

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/misc/mei/hw-me.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1154,6 +1154,8 @@ static int mei_me_hw_reset(struct mei_device *dev, bool intr_enable)
11541154
ret = mei_me_d0i3_exit_sync(dev);
11551155
if (ret)
11561156
return ret;
1157+
} else {
1158+
hw->pg_state = MEI_PG_OFF;
11571159
}
11581160
}
11591161

0 commit comments

Comments
 (0)