diff options
author | Tomas Winkler <tomas.winkler@intel.com> | 2014-01-12 00:36:10 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-01-13 14:57:21 -0800 |
commit | 6adb8efb024a7e413b93b22848fc13395b1a438a (patch) | |
tree | 42791bdf2275ff60421470df499c00850a6b052c /drivers/misc/mei/mei_dev.h | |
parent | 33ec0826314734fc4f3c9bf37d12e98063339b31 (diff) | |
download | linux-6adb8efb024a7e413b93b22848fc13395b1a438a.tar.gz linux-6adb8efb024a7e413b93b22848fc13395b1a438a.tar.bz2 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/mei_dev.h')
-rw-r--r-- | drivers/misc/mei/mei_dev.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/misc/mei/mei_dev.h b/drivers/misc/mei/mei_dev.h index a617c8494b70..f7de95b4cdd9 100644 --- a/drivers/misc/mei/mei_dev.h +++ b/drivers/misc/mei/mei_dev.h @@ -61,6 +61,11 @@ extern const uuid_le mei_wd_guid; #define MEI_CLIENTS_MAX 256 /* + * maximum number of consecutive resets + */ +#define MEI_MAX_CONSEC_RESET 3 + +/* * Number of File descriptors/handles * that can be opened to the driver. * @@ -327,6 +332,7 @@ struct mei_cl_device { /** * struct mei_device - MEI private device struct + * @reset_count - limits the number of consecutive resets * @hbm_state - state of host bus message protocol * @mem_addr - mem mapped base register address @@ -370,6 +376,7 @@ struct mei_device { /* * mei device states */ + unsigned long reset_count; enum mei_dev_state dev_state; enum mei_hbm_state hbm_state; u16 init_clients_timer; |