diff options
author | Tomas Winkler <tomas.winkler@intel.com> | 2015-07-23 08:08:42 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-08-03 20:21:59 -0400 |
commit | 0ff0a8d853039aa60bba3ca3e04e4fb74584a736 (patch) | |
tree | d3d3edd20665003e60e6b76794d76418eda7b640 /drivers/misc/mei/init.c | |
parent | 512f64d9f7467597388ffbd5a21589ee3f375d8b (diff) |
mei: bus: add me client device list infrastructure
Instead of holding the list of host clients (me_cl)
we want to keep the list me client devices (mei_cl_device)
This way we can create host to me client connection only when needed.
Add list head to mei_cl_device and cl_bus_lock
Add bus_added flag to the me client (mei_me_client) to track if
the appropriate mei_cl_device was already created and is_added
flag to mei_cl_device to track if it was already added to the device
list across the bus rescans
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/mei/init.c')
-rw-r--r-- | drivers/misc/mei/init.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/misc/mei/init.c b/drivers/misc/mei/init.c index 00c3865ca3b1..15000e9231b1 100644 --- a/drivers/misc/mei/init.c +++ b/drivers/misc/mei/init.c | |||
@@ -390,6 +390,7 @@ void mei_device_init(struct mei_device *dev, | |||
390 | INIT_LIST_HEAD(&dev->me_clients); | 390 | INIT_LIST_HEAD(&dev->me_clients); |
391 | mutex_init(&dev->device_lock); | 391 | mutex_init(&dev->device_lock); |
392 | init_rwsem(&dev->me_clients_rwsem); | 392 | init_rwsem(&dev->me_clients_rwsem); |
393 | mutex_init(&dev->cl_bus_lock); | ||
393 | init_waitqueue_head(&dev->wait_hw_ready); | 394 | init_waitqueue_head(&dev->wait_hw_ready); |
394 | init_waitqueue_head(&dev->wait_pg); | 395 | init_waitqueue_head(&dev->wait_pg); |
395 | init_waitqueue_head(&dev->wait_hbm_start); | 396 | init_waitqueue_head(&dev->wait_hbm_start); |