diff options
author | Johan Hovold <johan@hovoldconsulting.com> | 2015-12-15 17:28:57 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@google.com> | 2015-12-16 01:23:37 +0300 |
commit | 141af4f05435ac217b9e1fc8260b42e460997fb6 (patch) | |
tree | d4b4d0b040b1162c3ae9180041c25ae0c67036a6 /drivers/staging/greybus/interface.h | |
parent | c634650ecc5b3db9ac4f1258387b87ff66386906 (diff) | |
download | linux-141af4f05435ac217b9e1fc8260b42e460997fb6.tar.xz |
greybus: interface: fix hot-unplug control-connection timeouts
Set an interface disconnected flag when the interface has been
hot-unplugged (e.g. forcibly removed or after a reboot), and use it to
disable the control connection early when deregistering the interface
and its bundles.
This avoids a one-second (default) timeout for every enabled connection
(e.g. one per bundle) at hot-unplug, something which for the default
gpbridge manifest currently amounts to five seconds.
Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/interface.h')
-rw-r--r-- | drivers/staging/greybus/interface.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/greybus/interface.h b/drivers/staging/greybus/interface.h index 61e9c05e75c6..ca123ce11e76 100644 --- a/drivers/staging/greybus/interface.h +++ b/drivers/staging/greybus/interface.h @@ -35,6 +35,7 @@ struct gb_interface { /* The interface needs to boot over unipro */ bool boot_over_unipro; + bool disconnected; }; #define to_gb_interface(d) container_of(d, struct gb_interface, dev) |