aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorAlexander Usyskin <alexander.usyskin@intel.com>2022-06-06 17:42:23 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-06-10 15:39:24 +0200
commit9f4639373e6756e1ccf0029f861f1061db3c3616 (patch)
tree6f2e79339a307b023fce2935ce9cd2ea1b55cf79
parentmisc: rtsx: Fix clang -Wsometimes-uninitialized in rts5261_init_from_hw() (diff)
downloadwireguard-linux-9f4639373e6756e1ccf0029f861f1061db3c3616.tar.xz
wireguard-linux-9f4639373e6756e1ccf0029f861f1061db3c3616.zip
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 <alexander.usyskin@intel.com> Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Link: https://lore.kernel.org/r/20220606144225.282375-1-tomas.winkler@intel.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/misc/mei/hw-me.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/misc/mei/hw-me.c b/drivers/misc/mei/hw-me.c
index 9870bf717979..befa491e3344 100644
--- a/drivers/misc/mei/hw-me.c
+++ b/drivers/misc/mei/hw-me.c
@@ -1154,6 +1154,8 @@ static int mei_me_hw_reset(struct mei_device *dev, bool intr_enable)
ret = mei_me_d0i3_exit_sync(dev);
if (ret)
return ret;
+ } else {
+ hw->pg_state = MEI_PG_OFF;
}
}