mei: drop RECOVERING_FROM_RESET device state
ECOVERING_FROM_RESET device state is never set we can remove it Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
8c876be81a
commit
cea6aec451
@ -34,7 +34,6 @@ const char *mei_dev_state_str(int state)
|
|||||||
MEI_DEV_STATE(ENABLED);
|
MEI_DEV_STATE(ENABLED);
|
||||||
MEI_DEV_STATE(RESETING);
|
MEI_DEV_STATE(RESETING);
|
||||||
MEI_DEV_STATE(DISABLED);
|
MEI_DEV_STATE(DISABLED);
|
||||||
MEI_DEV_STATE(RECOVERING_FROM_RESET);
|
|
||||||
MEI_DEV_STATE(POWER_DOWN);
|
MEI_DEV_STATE(POWER_DOWN);
|
||||||
MEI_DEV_STATE(POWER_UP);
|
MEI_DEV_STATE(POWER_UP);
|
||||||
default:
|
default:
|
||||||
@ -139,9 +138,6 @@ void mei_reset(struct mei_device *dev, int interrupts_enabled)
|
|||||||
{
|
{
|
||||||
bool unexpected;
|
bool unexpected;
|
||||||
|
|
||||||
if (dev->dev_state == MEI_DEV_RECOVERING_FROM_RESET)
|
|
||||||
return;
|
|
||||||
|
|
||||||
unexpected = (dev->dev_state != MEI_DEV_INITIALIZING &&
|
unexpected = (dev->dev_state != MEI_DEV_INITIALIZING &&
|
||||||
dev->dev_state != MEI_DEV_DISABLED &&
|
dev->dev_state != MEI_DEV_DISABLED &&
|
||||||
dev->dev_state != MEI_DEV_POWER_DOWN &&
|
dev->dev_state != MEI_DEV_POWER_DOWN &&
|
||||||
|
@ -97,7 +97,6 @@ enum mei_dev_state {
|
|||||||
MEI_DEV_ENABLED,
|
MEI_DEV_ENABLED,
|
||||||
MEI_DEV_RESETING,
|
MEI_DEV_RESETING,
|
||||||
MEI_DEV_DISABLED,
|
MEI_DEV_DISABLED,
|
||||||
MEI_DEV_RECOVERING_FROM_RESET,
|
|
||||||
MEI_DEV_POWER_DOWN,
|
MEI_DEV_POWER_DOWN,
|
||||||
MEI_DEV_POWER_UP
|
MEI_DEV_POWER_UP
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user