]> git.baikalelectronics.ru Git - kernel.git/commit
mei: set connecting state just upon connection request is sent to the fw
authorAlexander Usyskin <alexander.usyskin@intel.com>
Sun, 27 Apr 2014 12:42:21 +0000 (15:42 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 3 May 2014 23:21:56 +0000 (19:21 -0400)
commit8b1e125dcc88fe7551bb8f683d4333915c88fbd0
tree923980006e425387991b49639d6d748e57640c8b
parent8b7a6cf595ce3ff407b0e03cd61bc04f9fc96b94
mei: set connecting state just upon connection request is sent to the fw

Adding power gating introduced new waiting state for client also during
connection attempt, a connection request can be queued for later either due
device is power gated or due to other on going connection.
We setting client connection state before start of full connect procedure so
in both cased the client state will be MEI_FILE_CONNECTING
which create interlock between the two connection attempts, both
detecting that another connection is in progress.

The interlock is resolved by moving client to connecting state
only upon connection request transmission, so the  first
cb in queue can be processed.

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/amthif.c
drivers/misc/mei/bus.c
drivers/misc/mei/client.c
drivers/misc/mei/main.c
drivers/misc/mei/wd.c