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>
Sat, 5 Oct 2013 14:13:10 +0000 (07:13 -0700)
commit18f48d9e784339c954eb1641fef600e00c7a53c0
tree141a32cb4ceff6ecb676fb9ed19cbd2c2f130901
parentcb4af713f95f049056c25e0c18f652c3338c2bc7
mei: bus: stop wait for read during cl state transition

commit e2b31644e999e8bfe3efce880fb32840299abf41 upstream.

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.:

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