diff options
author | Alexander Usyskin <alexander.usyskin@intel.com> | 2016-06-16 17:58:52 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-08-30 14:36:39 +0200 |
commit | 77537ad2917bbca0a73ee6ebd44fc0ce5416d590 (patch) | |
tree | c9bd6250496ac139ed82e9639c6ea7dd70aa8168 /drivers/misc/mei/hw-txe.c | |
parent | aab3b1a34ae376a80ebb05a217d950df13db5156 (diff) | |
download | linux-77537ad2917bbca0a73ee6ebd44fc0ce5416d590.tar.gz linux-77537ad2917bbca0a73ee6ebd44fc0ce5416d590.tar.bz2 linux-77537ad2917bbca0a73ee6ebd44fc0ce5416d590.zip |
mei: recover after errors in runtime pm flow
Schedule link reset if failed to perform runtime suspend or resume.
Set active runtime pm stte on link reset
to clean runtimr pm error, if present.
Signed-off-by: Alexander Usyskin <alexander.usyskin@intel.com>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/mei/hw-txe.c')
-rw-r--r-- | drivers/misc/mei/hw-txe.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/misc/mei/hw-txe.c b/drivers/misc/mei/hw-txe.c index 4a6c1b85f11e..e6e5e55a12ed 100644 --- a/drivers/misc/mei/hw-txe.c +++ b/drivers/misc/mei/hw-txe.c @@ -20,6 +20,7 @@ #include <linux/delay.h> #include <linux/kthread.h> #include <linux/irqreturn.h> +#include <linux/pm_runtime.h> #include <linux/mei.h> @@ -935,6 +936,8 @@ static int mei_txe_hw_start(struct mei_device *dev) return ret; } + pm_runtime_set_active(dev->dev); + /* enable input ready interrupts: * SEC_IPC_HOST_INT_MASK.IPC_INPUT_READY_INT_MASK */ |