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>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
512f64d9f7
commit
0ff0a8d853
@@ -657,6 +657,7 @@ struct mei_cl_device *mei_cl_add_device(struct mei_device *bus,
|
||||
cldev->dev.bus = &mei_cl_bus_type;
|
||||
cldev->dev.type = &mei_cl_device_type;
|
||||
cldev->bus = mei_dev_bus_get(bus);
|
||||
INIT_LIST_HEAD(&cldev->bus_list);
|
||||
|
||||
strlcpy(cldev->name, name, sizeof(cldev->name));
|
||||
|
||||
|
Reference in New Issue
Block a user