mei: don't get stuck in select during reset
authorTomas Winkler <tomas.winkler@intel.com>
Thu, 25 Jul 2013 17:15:53 +0000 (20:15 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 27 Jul 2013 00:54:30 +0000 (17:54 -0700)
commitb950ac1dabfcbf97b99f26fa75f86087e1960aef
treed9ef0e00c79acedc8eebdd3d61a460d7bbff962f
parent20138d6cb838aa01bb1b382dcb5f3d3a119ff2cb
mei: don't get stuck in select during reset

Clear pending connection after hw reset but before hw start
and wake up the waiting task in poll. Signal POLLERR in select
when device went through reset.

Add wrapper mei_cl_is_connected for checking if
the device and client are connected.

Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/mei/amthif.c
drivers/misc/mei/client.c
drivers/misc/mei/client.h
drivers/misc/mei/init.c
drivers/misc/mei/main.c