Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 576bffb5 authored by David Lin's avatar David Lin Committed by Alex Elder
Browse files

greybus: interface: send deactivate prepare when interface is disabled



The AP Interface shall exchange a Greybus Control Interface Deactivate
Prepare Operation with the Interface being powered down.

Testing Done:
 - Check for the return code after sending the deactivate prepare operation

Signed-off-by: default avatarDavid Lin <dtwlin@google.com>
Reviewed-by: default avatarJohan Hovold <johan@hovoldconsulting.com>
Signed-off-by: default avatarAlex Elder <elder@linaro.org>
parent 707a5c42
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -861,6 +861,9 @@ void gb_interface_disable(struct gb_interface *intf)
	list_for_each_entry_safe(bundle, next, &intf->bundles, links)
		gb_bundle_destroy(bundle);

	if (!intf->mode_switch && !intf->disconnected)
		gb_control_interface_deactivate_prepare(intf->control);

	gb_timesync_interface_remove(intf);
	gb_control_del(intf->control);
	gb_control_disable(intf->control);