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

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

mei: cancel driver workers only after client devices were removed



In process of client devices removal from the bus there still
might be communication between a driver and the mei device
hence we need to cancel supporting workers only after all
the client devices were removed.

Signed-off-by: default avatarTomas Winkler <tomas.winkler@intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 36fccce0
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -329,10 +329,10 @@ void mei_stop(struct mei_device *dev)
{
	dev_dbg(dev->dev, "stopping the device.\n");

	mei_cancel_work(dev);

	mei_cl_bus_remove_devices(dev);

	mei_cancel_work(dev);

	mutex_lock(&dev->device_lock);

	mei_wd_stop(dev);