Commit 87a4c819 authored by Johan Hovold's avatar Johan Hovold Committed by Greg Kroah-Hartman

greybus: svc: make sure to deactivate all interfaces on disconnect

Make sure to deactivate all interfaces when the svc is going away.

This is needed to eventually be able to do controlled teardown of the
unipro network.
Signed-off-by: default avatarJohan Hovold <johan@hovoldconsulting.com>
Reviewed-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent 49605839
......@@ -899,6 +899,7 @@ static void gb_svc_remove_interfaces(struct gb_svc *svc)
list_for_each_entry_safe(intf, tmp, &svc->hd->interfaces, links) {
gb_interface_disable(intf);
gb_interface_deactivate(intf);
gb_interface_remove(intf);
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment