greybus: firmware: Don't send control-disconnected event for firmware protocol
authorViresh Kumar <viresh.kumar@linaro.org>
Wed, 23 Sep 2015 23:48:13 +0000 (16:48 -0700)
committerGreg Kroah-Hartman <gregkh@google.com>
Thu, 24 Sep 2015 22:25:03 +0000 (15:25 -0700)
commit336dfeaba1f6dd3b07571e0010707f716a1c6ee8
treea3f2d93df9e0d0c80449af7fc5eafe93f979ad30
parent06986a2cbe7a3d20ed8a8651afd80f08948f3ee6
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>
drivers/staging/greybus/firmware.c