mei: make device disabled on stop unconditionally
authorAlexander Usyskin <alexander.usyskin@intel.com>
Tue, 10 Feb 2015 08:36:36 +0000 (10:36 +0200)
committerSasha Levin <sasha.levin@oracle.com>
Sat, 14 Mar 2015 19:37:21 +0000 (15:37 -0400)
commit85f1ab830872695c6b414c87ad5d2730b52cb23d
tree4f0ddf494ebaf45d757e44f823f27a8eb929abd2
parent2c76bd8b4023531f4fb9bf22176e4d6bd92dfa88
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: Sasha Levin <sasha.levin@oracle.com>
drivers/misc/mei/init.c