mei: don't clean control queues on notify request timeout
Timeout on notify request is not a fatal condition, and actually cleaning control queues will disrupt other control flows of the same client. 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>
This commit is contained in:
parent
9d04ee11db
commit
4a8eaa96d8
|
@ -1337,12 +1337,8 @@ int mei_cl_notify_request(struct mei_cl *cl,
|
||||||
mei_secs_to_jiffies(MEI_CL_CONNECT_TIMEOUT));
|
mei_secs_to_jiffies(MEI_CL_CONNECT_TIMEOUT));
|
||||||
mutex_lock(&dev->device_lock);
|
mutex_lock(&dev->device_lock);
|
||||||
|
|
||||||
if (cl->notify_en != request) {
|
if (cl->notify_en != request && !cl->status)
|
||||||
mei_io_list_flush(&dev->ctrl_rd_list, cl);
|
cl->status = -EFAULT;
|
||||||
mei_io_list_flush(&dev->ctrl_wr_list, cl);
|
|
||||||
if (!cl->status)
|
|
||||||
cl->status = -EFAULT;
|
|
||||||
}
|
|
||||||
|
|
||||||
rets = cl->status;
|
rets = cl->status;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue