projects
/
platform
/
kernel
/
linux-rpi3.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4960583
)
greybus: svc: make sure to deactivate all interfaces on disconnect
author
Johan Hovold
<johan@hovoldconsulting.com>
Wed, 13 Apr 2016 17:19:07 +0000
(19:19 +0200)
committer
Greg Kroah-Hartman
<gregkh@google.com>
Thu, 21 Apr 2016 01:09:03 +0000
(10:09 +0900)
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>
drivers/staging/greybus/svc.c
patch
|
blob
|
history
diff --git
a/drivers/staging/greybus/svc.c
b/drivers/staging/greybus/svc.c
index
5a16ad3
..
25978e7
100644
(file)
--- 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);
}
}