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

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: NTomas Winkler <tomas.winkler@intel.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 36fccce0
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册