mei: bus: Synchronous API for the data transmission
authorSamuel Ortiz <sameo@linux.intel.com>
Wed, 27 Mar 2013 15:29:58 +0000 (17:29 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 29 Mar 2013 15:45:59 +0000 (08:45 -0700)
commit44d88d919261256e3bd999cde05572c8c4afb642
tree95f1bc31837598f45fe5260b8f1be6ebf3f304ed
parentcf3baefba04073237decb1b8a8c114b0b45bfc80
mei: bus: Synchronous API for the data transmission

Define a truly synchronous API for the bus Tx path by putting all pending
request to the write list and wait for the interrupt tx handler to wake
us up.
The ___mei_cl_send() out path is also slightly reworked to make it look more
like main.c:mei_write().

Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
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/mei_dev.h