summaryrefslogtreecommitdiffstats
path: root/drivers/misc
diff options
context:
space:
mode:
authorAlexander Usyskin <alexander.usyskin@intel.com>2014-07-17 10:53:35 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-09-05 16:36:27 -0700
commit06dcc69217177e10028898abbf29d5cc8a582303 (patch)
tree93c012d5c35c3348c7fea97c367b017662101c7b /drivers/misc
parenta7c2d23699f7d059498abcbffaa38d60603291ad (diff)
downloadlinux-stable-06dcc69217177e10028898abbf29d5cc8a582303.tar.gz
linux-stable-06dcc69217177e10028898abbf29d5cc8a582303.tar.bz2
linux-stable-06dcc69217177e10028898abbf29d5cc8a582303.zip
mei: start disconnect request timer consistently
commit 22b987a325701223f9a37db700c6eb20b9924c6f upstream. Link must be reset in case the fw doesn't respond to client disconnect request. We did charge the timer only in irq path from mei_cl_irq_close and not in mei_cl_disconnect 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 9f8ab28bcb60..65545007745e 100644
--- a/drivers/misc/mei/client.c
+++ b/drivers/misc/mei/client.c
@@ -491,6 +491,7 @@ int mei_cl_disconnect(struct mei_cl *cl)
cl_err(dev, cl, "failed to disconnect.\n");
goto free;
}
+ cl->timer_count = MEI_CONNECT_TIMEOUT;
mdelay(10); /* Wait for hardware disconnection ready */
list_add_tail(&cb->list, &dev->ctrl_rd_list.list);
} else {