提交 eead035a 编写于 作者: T Tomas Winkler 提交者: Greg Kroah-Hartman

mei: remove check on pm_runtime_active in __mei_cl_disconnect

Remove bogus check on pm_runtime_active that prevented
disconnection from a client in case the device was resuming
from power gating but not yet active.

Fix regression introduced by
18901357
mei: disconnect on connection request timeout
Signed-off-by: NTomas Winkler <tomas.winkler@intel.com>
Signed-off-by: NAlexander Usyskin <alexander.usyskin@intel.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 155718cf
......@@ -853,9 +853,6 @@ static int __mei_cl_disconnect(struct mei_cl *cl)
dev = cl->dev;
if (WARN_ON(!pm_runtime_active(dev->dev)))
return -EFAULT;
cl->state = MEI_FILE_DISCONNECTING;
cb = mei_io_cb_init(cl, MEI_FOP_DISCONNECT, NULL);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册