mei: bus: add send and recv api with timeout
authorAlexander Usyskin <alexander.usyskin@intel.com>
Wed, 11 Oct 2023 11:01:54 +0000 (14:01 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Oct 2023 08:01:33 +0000 (10:01 +0200)
commitcf439721f66719c6aa73b5ea23320c2f8cba100f
tree6c1705b8170f2d31c870c85bd3287d8eb8074a53
parent931d8c0087ac49ea9707995b12ca0630cf51aa53
mei: bus: add send and recv api with timeout

Add variation of the send and recv functions on bus
that define timeout.
Caller can use such functions in flow that can stuck
to bail out and not to put down the whole system.

Signed-off-by: Alexander Usyskin <alexander.usyskin@intel.com>
Signed-off-by: Alan Previn <alan.previn.teres.alexis@intel.com>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Link: https://lore.kernel.org/r/20231011110157.247552-2-tomas.winkler@intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/mei/bus.c
include/linux/mei_cl_bus.h