diff options
author | Johan Hovold <johan@hovoldconsulting.com> | 2016-05-27 17:26:36 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@google.com> | 2016-05-27 12:24:17 -0700 |
commit | 3de5acfafb3c610bc6f7013a1583852cbc2747f1 (patch) | |
tree | 754df49b802847c5a4889cbbe43906df33200fb8 /drivers/staging/greybus/greybus_protocols.h | |
parent | 18079ece816b3b272b114b770e636f4e5567b028 (diff) | |
download | op-kernel-dev-3de5acfafb3c610bc6f7013a1583852cbc2747f1.zip op-kernel-dev-3de5acfafb3c610bc6f7013a1583852cbc2747f1.tar.gz |
greybus: connection: implement proper connection closure
Implement proper connection closure, which includes sending ping
requests on the connection being tore down while coordinating with the
remote interface as well as the SVC.
This specifically implements the new ping operation, which in case of
offloaded connections is handled by the host-device driver in an
implementation-defined manner through a new callback.
Note that the normal connection tear-down procedure is executed in case
of failed connection establishment due to failed connected operation.
Specifically, the disconnecting request is sent also in case the
connected operation never succeeded. This is needed since the interface
may have enabled FCT flow upon receiving the connected request.
Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/greybus_protocols.h')
-rw-r--r-- | drivers/staging/greybus/greybus_protocols.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/greybus/greybus_protocols.h b/drivers/staging/greybus/greybus_protocols.h index 216a1d1..6afd0a6 100644 --- a/drivers/staging/greybus/greybus_protocols.h +++ b/drivers/staging/greybus/greybus_protocols.h @@ -96,6 +96,7 @@ struct gb_operation_msg_hdr { /* Generic request types */ +#define GB_REQUEST_TYPE_PING 0x00 #define GB_REQUEST_TYPE_PROTOCOL_VERSION 0x01 #define GB_REQUEST_TYPE_INVALID 0x7f |