mei: remove write only need_reset member of struct mei_device
need_reset is not used anymore Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
d025284d06
commit
a9f6b133ab
2 changed files with 1 additions and 6 deletions
|
@ -199,10 +199,8 @@ void mei_reset(struct mei_device *dev, int interrupts_enabled)
|
||||||
struct mei_cl_cb *cb_next = NULL;
|
struct mei_cl_cb *cb_next = NULL;
|
||||||
bool unexpected;
|
bool unexpected;
|
||||||
|
|
||||||
if (dev->dev_state == MEI_DEV_RECOVERING_FROM_RESET) {
|
if (dev->dev_state == MEI_DEV_RECOVERING_FROM_RESET)
|
||||||
dev->need_reset = true;
|
|
||||||
return;
|
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 &&
|
||||||
|
@ -224,8 +222,6 @@ void mei_reset(struct mei_device *dev, int interrupts_enabled)
|
||||||
dev_dbg(&dev->pdev->dev, "currently saved host_hw_state = 0x%08x.\n",
|
dev_dbg(&dev->pdev->dev, "currently saved host_hw_state = 0x%08x.\n",
|
||||||
dev->host_hw_state);
|
dev->host_hw_state);
|
||||||
|
|
||||||
dev->need_reset = false;
|
|
||||||
|
|
||||||
if (dev->dev_state != MEI_DEV_INITIALIZING) {
|
if (dev->dev_state != MEI_DEV_INITIALIZING) {
|
||||||
if (dev->dev_state != MEI_DEV_DISABLED &&
|
if (dev->dev_state != MEI_DEV_DISABLED &&
|
||||||
dev->dev_state != MEI_DEV_POWER_DOWN)
|
dev->dev_state != MEI_DEV_POWER_DOWN)
|
||||||
|
|
|
@ -260,7 +260,6 @@ struct mei_device {
|
||||||
enum mei_dev_state dev_state;
|
enum mei_dev_state dev_state;
|
||||||
enum mei_init_clients_states init_clients_state;
|
enum mei_init_clients_states init_clients_state;
|
||||||
u16 init_clients_timer;
|
u16 init_clients_timer;
|
||||||
bool need_reset;
|
|
||||||
|
|
||||||
unsigned char rd_msg_buf[MEI_RD_MSG_BUF_SIZE]; /* control messages */
|
unsigned char rd_msg_buf[MEI_RD_MSG_BUF_SIZE]; /* control messages */
|
||||||
u32 rd_msg_hdr;
|
u32 rd_msg_hdr;
|
||||||
|
|
Loading…
Reference in a new issue