From 87a4c819a545e41eacab0de1e250173963dacbf8 Mon Sep 17 00:00:00 2001 From: Johan Hovold Date: Wed, 13 Apr 2016 19:19:07 +0200 Subject: [PATCH] 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 Reviewed-by: Viresh Kumar Signed-off-by: Greg Kroah-Hartman --- drivers/staging/greybus/svc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/greybus/svc.c b/drivers/staging/greybus/svc.c index 5a16ad33b74b..25978e718ece 100644 --- a/drivers/staging/greybus/svc.c +++ b/drivers/staging/greybus/svc.c @@ -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); } } -- 2.20.1