mei: bus: stop wait for read during cl state transition
authorTomas Winkler <tomas.winkler@intel.com>
Mon, 2 Sep 2013 10:29:46 +0000 (13:29 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Sep 2013 20:56:53 +0000 (13:56 -0700)
commite2b31644e999e8bfe3efce880fb32840299abf41
tree092f58faecfc5a79efc4e31c709f6312a38c255f
parent1aee351a739153529fbb98ee461777b2abd5e1c9
mei: bus: stop wait for read during cl state transition

Bus layer omitted check for client state transition while waiting
for read completion
The client state transition may occur for example as result
of firmware initiated reset

Add mei_cl_is_transitioning wrapper to reduce the code
repetition.:

Cc: <stable@vger.kernel.org> # 3.9+
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/client.h
drivers/misc/mei/main.c