aboutsummaryrefslogtreecommitdiff
path: root/drivers/staging/greybus/firmware.c
diff options
context:
space:
mode:
authorGravatar Viresh Kumar <viresh.kumar@linaro.org> 2015-09-23 16:48:13 -0700
committerGravatar Greg Kroah-Hartman <gregkh@google.com> 2015-09-24 15:25:03 -0700
commit336dfeaba1f6dd3b07571e0010707f716a1c6ee8 (patch)
treea3f2d93df9e0d0c80449af7fc5eafe93f979ad30 /drivers/staging/greybus/firmware.c
parentgreybus: firmware: drop 'stage' from ready-to-boot request (diff)
downloadlinux-336dfeaba1f6dd3b07571e0010707f716a1c6ee8.tar.gz
linux-336dfeaba1f6dd3b07571e0010707f716a1c6ee8.tar.bz2
linux-336dfeaba1f6dd3b07571e0010707f716a1c6ee8.zip
greybus: firmware: Don't send control-disconnected event for firmware protocol
After downloading the firmware for the next boot stage, module's firmware (for current boot stage) jumps into it and the new firmware and sends hotplug request to SVC. On hotplug request from the SVC, the AP first removes the existing interface. At this time, there is no point sending disconnected event for the firmware protocol, for the firmware used in previous stage, as the new firmware wouldn't be aware about it. Set flags for firmware protocol to skip control-disconnected operations. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Reviewed-by: Johan Hovold <johan@hovoldconsulting.com> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/firmware.c')
-rw-r--r--drivers/staging/greybus/firmware.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/greybus/firmware.c b/drivers/staging/greybus/firmware.c
index 884b7e2ad0a8..e04ed6bffcf5 100644
--- a/drivers/staging/greybus/firmware.c
+++ b/drivers/staging/greybus/firmware.c
@@ -210,5 +210,6 @@ static struct gb_protocol firmware_protocol = {
.connection_init = gb_firmware_connection_init,
.connection_exit = gb_firmware_connection_exit,
.request_recv = gb_firmware_request_recv,
+ .flags = GB_PROTOCOL_SKIP_CONTROL_DISCONNECTED,
};
gb_builtin_protocol_driver(firmware_protocol);