mei: reset client state on queued connect request
authorAlexander Usyskin <alexander.usyskin@intel.com>
Tue, 12 Aug 2014 15:07:56 +0000 (18:07 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 25 Aug 2014 20:16:23 +0000 (13:16 -0700)
commit73ab4232388b7a08f17c8d08141ff2099fa0b161
tree4702cc4e554f1a191b44f02a5feb3d319bf44e7f
parent7d1311b93e58ed55f3a31cc8f94c4b8fe988a2b9
mei: reset client state on queued connect request

If connect request is queued (e.g. device in pg) set client state
to initializing, thus avoid preliminary exit in wait if current
state is disconnected.

This is regression from:

commit e4d8270e604c3202131bac607969605ac397b893
Author: Alexander Usyskin <alexander.usyskin@intel.com>
mei: set connecting state just upon connection request is sent to the fw

CC: stable@vger.kernel.org # 3.15+
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