summaryrefslogtreecommitdiff
path: root/drivers/misc
diff options
context:
space:
mode:
authorAlexander Usyskin <alexander.usyskin@intel.com>2014-08-12 18:07:56 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-09-05 16:34:16 -0700
commitfec95c2a6e2af47f2a0aa406859d88a957b97a11 (patch)
tree1fb8f2f75b64ae61c7027c2107cd7240e0d28a47 /drivers/misc
parenta848c23fb1e59ddcde23b7715b08ad8bfef78ee0 (diff)
downloadlwn-fec95c2a6e2af47f2a0aa406859d88a957b97a11.tar.gz
lwn-fec95c2a6e2af47f2a0aa406859d88a957b97a11.zip
mei: reset client state on queued connect request
commit 73ab4232388b7a08f17c8d08141ff2099fa0b161 upstream. 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 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>
Diffstat (limited to 'drivers/misc')
-rw-r--r--drivers/misc/mei/client.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/misc/mei/client.c b/drivers/misc/mei/client.c
index f0ddf72736a6..540fe114ec60 100644
--- a/drivers/misc/mei/client.c
+++ b/drivers/misc/mei/client.c
@@ -564,6 +564,7 @@ int mei_cl_connect(struct mei_cl *cl, struct file *file)
cl->timer_count = MEI_CONNECT_TIMEOUT;
list_add_tail(&cb->list, &dev->ctrl_rd_list.list);
} else {
+ cl->state = MEI_FILE_INITIALIZING;
list_add_tail(&cb->list, &dev->ctrl_wr_list.list);
}