mei: fix waiting for wr_ctrl for corner cases.
commit7ff4bdd45448936363dc6dc6c851112b5c08e209
authorAlexander Usyskin <alexander.usyskin@intel.com>
Wed, 20 Apr 2016 15:03:55 +0000 (20 11:03 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 30 Apr 2016 21:08:08 +0000 (30 14:08 -0700)
tree93a8e1621ef6d07fe36431413a31351e9ee485a8
parent4a8eaa96d8eebf5818ddf1aca92e775a2c2d3f7e
mei: fix waiting for wr_ctrl for corner cases.

A control message reply may not be received if either a link reset has
occurred or disconnection is initiated by the FW.
In the both cases the client state will be set straight to DISCONNECTED
and the driver will wait till timeout.
Adding DISCONNECTED state in the waiting condition will release the
client from the stall.

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/client.c