mei: don't have to clean the state on power up
When powering up, we don't have to clean up the device state nothing is connected. Tested-by: Shuah Khan <shuah.kh@samsung.com> Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
315a383ad7
commit
99f22c4ef2
|
@ -148,7 +148,8 @@ void mei_reset(struct mei_device *dev, int interrupts_enabled)
|
|||
|
||||
dev->hbm_state = MEI_HBM_IDLE;
|
||||
|
||||
if (dev->dev_state != MEI_DEV_INITIALIZING) {
|
||||
if (dev->dev_state != MEI_DEV_INITIALIZING &&
|
||||
dev->dev_state != MEI_DEV_POWER_UP) {
|
||||
if (dev->dev_state != MEI_DEV_DISABLED &&
|
||||
dev->dev_state != MEI_DEV_POWER_DOWN)
|
||||
dev->dev_state = MEI_DEV_RESETTING;
|
||||
|
|
Loading…
Reference in New Issue