Bläddra i källkod

mei: make device disabled on stop unconditionally

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.

Cc: <stable@vger.kernel.org> #3.10+
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>
Alexander Usyskin 10 år sedan
förälder
incheckning
6c15a8516b
1 ändrade filer med 2 tillägg och 0 borttagningar
  1. 2 0
      drivers/misc/mei/init.c

+ 2 - 0
drivers/misc/mei/init.c

@@ -341,6 +341,8 @@ void mei_stop(struct mei_device *dev)
 
 
 	dev->dev_state = MEI_DEV_POWER_DOWN;
 	dev->dev_state = MEI_DEV_POWER_DOWN;
 	mei_reset(dev);
 	mei_reset(dev);
+	/* move device to disabled state unconditionally */
+	dev->dev_state = MEI_DEV_DISABLED;
 
 
 	mutex_unlock(&dev->device_lock);
 	mutex_unlock(&dev->device_lock);