Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit eead035a authored by Tomas Winkler's avatar Tomas Winkler Committed by Greg Kroah-Hartman
Browse files

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: default avatarTomas Winkler <tomas.winkler@intel.com>
Signed-off-by: default avatarAlexander Usyskin <alexander.usyskin@intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 155718cf
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -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);