summaryrefslogtreecommitdiff
path: root/drivers/staging/greybus/fw-management.c
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2016-05-30 14:32:09 +0530
committerGreg Kroah-Hartman <gregkh@google.com>2016-06-02 11:16:22 -0700
commit68ee90c29ea4068e03ad637af07f6ad7c27da544 (patch)
tree6339c40e822820b81e0a63eeec247e1fcf29dc4d /drivers/staging/greybus/fw-management.c
parent7dea1d5f8a9d3141881dab40bb55c1a7ae84d8ab (diff)
greybus: Add comment about the mode_switch_started flag
Add a comment to describe the purpose of the flag. Suggested-by: Vaibhav Hiremath <vaibhav.hiremath@linaro.org> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Reviewed-by: Vaibhav Hiremath <vaibhav.hiremath@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/fw-management.c')
-rw-r--r--drivers/staging/greybus/fw-management.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/staging/greybus/fw-management.c b/drivers/staging/greybus/fw-management.c
index 22dcad2ebc15..c9c28fc15492 100644
--- a/drivers/staging/greybus/fw-management.c
+++ b/drivers/staging/greybus/fw-management.c
@@ -482,6 +482,11 @@ static int fw_mgmt_ioctl(struct fw_mgmt *fw_mgmt, unsigned int cmd,
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;
ret = gb_interface_request_mode_switch(fw_mgmt->connection->intf);