summaryrefslogtreecommitdiffstats
path: root/drivers/misc/mei/client.c
diff options
context:
space:
mode:
authorTomas Winkler2014-01-11 23:36:10 +0100
committerGreg Kroah-Hartman2014-01-13 23:57:21 +0100
commit6adb8efb024a7e413b93b22848fc13395b1a438a (patch)
tree42791bdf2275ff60421470df499c00850a6b052c /drivers/misc/mei/client.c
parentmei: revamp mei reset state machine (diff)
downloadkernel-qcow2-linux-6adb8efb024a7e413b93b22848fc13395b1a438a.tar.gz
kernel-qcow2-linux-6adb8efb024a7e413b93b22848fc13395b1a438a.tar.xz
kernel-qcow2-linux-6adb8efb024a7e413b93b22848fc13395b1a438a.zip
mei: limit the number of consecutive resets
give up reseting after 3 unsuccessful tries Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Signed-off-by: Alexander Usyskin <alexander.usyskin@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/mei/client.c')
-rw-r--r--drivers/misc/mei/client.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/misc/mei/client.c b/drivers/misc/mei/client.c
index 4f268a377720..1ee2b9492a82 100644
--- a/drivers/misc/mei/client.c
+++ b/drivers/misc/mei/client.c
@@ -370,6 +370,7 @@ void mei_host_client_init(struct work_struct *work)
}
dev->dev_state = MEI_DEV_ENABLED;
+ dev->reset_count = 0;
mutex_unlock(&dev->device_lock);
}