mei: bus: enable non-blocking RX
authorAlexander Usyskin <alexander.usyskin@intel.com>
Fri, 2 Dec 2016 22:15:25 +0000 (00:15 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 6 Dec 2016 10:05:46 +0000 (11:05 +0100)
commit076802d0061520bc646ee121fe0f34fce6c55a93
tree3c17b6372e44c369649691f8c90822bb3f8ea3e0
parenta2eb0fc07f4d4f3b2eb2b1b1b72de738d4b9e003
mei: bus: enable non-blocking RX

Enable non-blocking receive for drivers on mei bus, this allows checking
for data availability by mei client drivers. This is most effective for
fixed address clients, that lacks flow control.

This function adds new API function mei_cldev_recv_nonblock(), it
retuns -EGAIN if function will block.

Signed-off-by: Alexander Usyskin <alexander.usyskin@intel.com>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/mei/bus-fixup.c
drivers/misc/mei/bus.c
drivers/misc/mei/mei_dev.h
include/linux/mei_cl_bus.h