]> git.karo-electronics.de Git - linux-beck.git/commit
greybus: interface: separate disabling from removal
authorJohan Hovold <johan@hovoldconsulting.com>
Wed, 9 Mar 2016 11:20:43 +0000 (12:20 +0100)
committerGreg Kroah-Hartman <gregkh@google.com>
Thu, 10 Mar 2016 21:57:42 +0000 (13:57 -0800)
commit629c0d007de962bb4edca7b959cebebb29746e90
tree4a3e7c9d469c48d537ee1f362d448cc5aca1734f
parent35580af0bd620056506ed51fff024fc4ade66f67
greybus: interface: separate disabling from removal

Separate interface disable from interface removal.

Disabling an interface means tearing down its control connection and
destroying (i.e. deregistering and releasing) its bundles, while
removing it means deregistering and releasing the interface itself.

This is needed to implement controlled module removal, where the module
interfaces are disabled before being physically ejected.

Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Reviewed-by: Jeffrey Carlyle <jcarlyle@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/interface.c
drivers/staging/greybus/interface.h
drivers/staging/greybus/svc.c