diff options
author | Alexander Usyskin <alexander.usyskin@intel.com> | 2013-09-02 12:29:47 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-09-26 22:56:53 +0200 |
commit | 4a704575cc1afb3b848f096778fa9b8d7b3d5813 (patch) | |
tree | 3e04f10a57f47e25932716f8156b067b6aca49ae /drivers/misc/mei/init.c | |
parent | mei: bus: stop wait for read during cl state transition (diff) | |
download | linux-4a704575cc1afb3b848f096778fa9b8d7b3d5813.tar.xz linux-4a704575cc1afb3b848f096778fa9b8d7b3d5813.zip |
mei: cancel stall timers in mei_reset
Unset init_clients_timer and amthif_stall_timers
in mei_reset in order to cancel timer ticking and hence
avoid recursive reset calls.
Cc: <stable@vger.kernel.org> # 3.9+
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 '')
-rw-r--r-- | drivers/misc/mei/init.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/misc/mei/init.c b/drivers/misc/mei/init.c index 92c73118b13c..6197018e2f16 100644 --- a/drivers/misc/mei/init.c +++ b/drivers/misc/mei/init.c @@ -175,6 +175,9 @@ void mei_reset(struct mei_device *dev, int interrupts_enabled) memset(&dev->wr_ext_msg, 0, sizeof(dev->wr_ext_msg)); } + /* we're already in reset, cancel the init timer */ + dev->init_clients_timer = 0; + dev->me_clients_num = 0; dev->rd_msg_hdr = 0; dev->wd_pending = false; |