summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorAlexander Usyskin <alexander.usyskin@intel.com>2015-02-10 10:36:36 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-03-18 13:31:27 +0100
commit293875f239a3813e5fca8f520ab14cb6b9308dca (patch)
treeb81eee851916a84b1319d15ce4584677a8d4fc9a /drivers
parentbe8a8e08a9ad0b04627b0cefec706a37e675061c (diff)
downloadlwn-293875f239a3813e5fca8f520ab14cb6b9308dca.tar.gz
lwn-293875f239a3813e5fca8f520ab14cb6b9308dca.zip
mei: make device disabled on stop unconditionally
commit 6c15a8516b8118eb19a59fd0bd22df41b9101c32 upstream. Set the internal device state to to disabled after hardware reset in stop flow. This will cover cases when driver was not brought to disabled state because of an error and in stop flow we wish not to retry the reset. 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')
-rw-r--r--drivers/misc/mei/init.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/misc/mei/init.c b/drivers/misc/mei/init.c
index cdd31c2a2a2b..b2965382d0ec 100644
--- a/drivers/misc/mei/init.c
+++ b/drivers/misc/mei/init.c
@@ -275,6 +275,8 @@ void mei_stop(struct mei_device *dev)
dev->dev_state = MEI_DEV_POWER_DOWN;
mei_reset(dev);
+ /* move device to disabled state unconditionally */
+ dev->dev_state = MEI_DEV_DISABLED;
mutex_unlock(&dev->device_lock);