greybus: connection: implement proper connection closure
[cascardo/linux.git] / drivers / staging / greybus / connection.h
index 9a35e61..af171f5 100644 (file)
 #define GB_CONNECTION_FLAG_CONTROL     BIT(4)
 
 enum gb_connection_state {
-       GB_CONNECTION_STATE_DISABLED    = 0,
-       GB_CONNECTION_STATE_ENABLED_TX  = 1,
-       GB_CONNECTION_STATE_ENABLED     = 2,
+       GB_CONNECTION_STATE_DISABLED            = 0,
+       GB_CONNECTION_STATE_ENABLED_TX          = 1,
+       GB_CONNECTION_STATE_ENABLED             = 2,
+       GB_CONNECTION_STATE_DISCONNECTING       = 3,
 };
 
 struct gb_operation;