aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc/mei
diff options
context:
space:
mode:
authorTomas Winkler <tomas.winkler@intel.com>2012-08-23 17:35:58 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-09-05 16:45:56 -0400
commit1e2776c3aff1a4c79751b2a7045524fb141c2405 (patch)
tree01664a809e021bf0776d9ac56b8ea11bf9c5b369 /drivers/misc/mei
parentdaed6b5e78c11f34f08cc2bc1640b7f248884cee (diff)
mei: fix max number of open handles
There was internal confusion in wether bus message clinet (0) is counted in or not The bitmap me_clients_map that accomodate was initialized w/o it (255) but later on it the clinet 0 was reserved Thus were able to open only 252 instead of 253 clients Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/mei')
-rw-r--r--drivers/misc/mei/mei_dev.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/drivers/misc/mei/mei_dev.h b/drivers/misc/mei/mei_dev.h
index ad6c9d5af1e9..96d3e7950932 100644
--- a/drivers/misc/mei/mei_dev.h
+++ b/drivers/misc/mei/mei_dev.h
@@ -56,19 +56,21 @@ extern const uuid_le mei_wd_guid;
56extern const u8 mei_wd_state_independence_msg[3][4]; 56extern const u8 mei_wd_state_independence_msg[3][4];
57 57
58/* 58/*
59 * Number of Maximum MEI Clients
60 */
61#define MEI_CLIENTS_MAX 256
62
63/*
59 * Number of File descriptors/handles 64 * Number of File descriptors/handles
60 * that can be opened to the driver. 65 * that can be opened to the driver.
61 * 66 *
62 * Limit to 253: 255 Total Clients 67 * Limit to 253: 256 Total Clients
68 * minus internal client for MEI Bus Messags
63 * minus internal client for AMTHI 69 * minus internal client for AMTHI
64 * minus internal client for Watchdog 70 * minus internal client for Watchdog
65 */ 71 */
66#define MEI_MAX_OPEN_HANDLE_COUNT 253 72#define MEI_MAX_OPEN_HANDLE_COUNT (MEI_CLIENTS_MAX - 3)
67 73
68/*
69 * Number of Maximum MEI Clients
70 */
71#define MEI_CLIENTS_MAX 255
72 74
73/* File state */ 75/* File state */
74enum file_state { 76enum file_state {