]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - include/linux/mei_cl_bus.h
mei: bus: add me client device list infrastructure
authorTomas Winkler <tomas.winkler@intel.com>
Thu, 23 Jul 2015 12:08:42 +0000 (15:08 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 4 Aug 2015 00:21:59 +0000 (17:21 -0700)
commit0ff0a8d853039aa60bba3ca3e04e4fb74584a736
treed3d3edd20665003e60e6b76794d76418eda7b640
parent512f64d9f7467597388ffbd5a21589ee3f375d8b
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>
drivers/misc/mei/bus.c
drivers/misc/mei/init.c
drivers/misc/mei/mei_dev.h
include/linux/mei_cl_bus.h