OSDN Git Service

mei: bus: add client dma interface
authorAlexander Usyskin <alexander.usyskin@intel.com>
Fri, 12 Nov 2021 06:28:09 +0000 (08:28 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 26 Nov 2021 16:31:46 +0000 (18:31 +0200)
commit2cca3465147d650be3de04927a99784b30251ade
tree6c2345c0c6179550e5f88e610a5ce6d86aed9c74
parent84d94e16efa268e4f2887d858cd67ee37b870f25
mei: bus: add client dma interface

Expose the client dma mapping via mei client bus interface.
The client dma has to be mapped before the device is enabled,
therefore we need to create device linking already during mapping
and we need to unmap after the client is disable hence we need to
postpone the unlink and flush till unmapping or when
destroying the device.

Signed-off-by: Alexander Usyskin <alexander.usyskin@intel.com>
Co-developed-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://lore.kernel.org/r/20210420172755.12178-1-emmanuel.grumbach@intel.com
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20211112062814.7502-1-emmanuel.grumbach@intel.com
drivers/misc/mei/bus.c
drivers/misc/mei/client.c
drivers/misc/mei/hw.h
include/linux/mei_cl_bus.h