mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-06 02:50:43 +00:00
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: Johan Hovold <johan@hovoldconsulting.com> Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
parent
49605839bc
commit
87a4c819a5
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue