提交 68ee90c2 编写于 作者: V Viresh Kumar 提交者: Greg Kroah-Hartman

greybus: Add comment about the mode_switch_started flag

Add a comment to describe the purpose of the flag.
Suggested-by: NVaibhav Hiremath <vaibhav.hiremath@linaro.org>
Signed-off-by: NViresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: NVaibhav Hiremath <vaibhav.hiremath@linaro.org>
Signed-off-by: NGreg Kroah-Hartman <gregkh@google.com>
上级 7dea1d5f
...@@ -482,6 +482,11 @@ static int fw_mgmt_ioctl(struct fw_mgmt *fw_mgmt, unsigned int cmd, ...@@ -482,6 +482,11 @@ static int fw_mgmt_ioctl(struct fw_mgmt *fw_mgmt, unsigned int cmd,
return -EPERM; return -EPERM;
} }
/*
* Disallow new ioctls as the fw-core bundle driver is going to
* get disconnected soon and the character device will get
* removed.
*/
fw_mgmt->mode_switch_started = true; fw_mgmt->mode_switch_started = true;
ret = gb_interface_request_mode_switch(fw_mgmt->connection->intf); ret = gb_interface_request_mode_switch(fw_mgmt->connection->intf);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册