diff options
author | Johan Hovold <johan@hovoldconsulting.com> | 2016-08-10 12:58:44 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@google.com> | 2016-08-11 14:13:07 +0200 |
commit | 6471c0039cd2fa92bb7df1262c57cb5190eb4311 (patch) | |
tree | 49132fb017e0d7ac3c11a423fabfa4cb3e56355f /drivers/staging/greybus/arpc.h | |
parent | 0e7cd0d259890f21d13171d5798eed24a03903dc (diff) | |
download | op-kernel-dev-6471c0039cd2fa92bb7df1262c57cb5190eb4311.zip op-kernel-dev-6471c0039cd2fa92bb7df1262c57cb5190eb4311.tar.gz |
greybus: hd/es2: add cport_clear callback and ARPC
Add a host-device cport_clear callback, which will be called as part
of the new connection tear-down sequence to reset the CPort state.
Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
Acked-by: Sandeep Patil <sspatil@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/arpc.h')
-rw-r--r-- | drivers/staging/greybus/arpc.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/staging/greybus/arpc.h b/drivers/staging/greybus/arpc.h index 9fb1608..6d27769 100644 --- a/drivers/staging/greybus/arpc.h +++ b/drivers/staging/greybus/arpc.h @@ -79,6 +79,7 @@ struct arpc_response_message { #define ARPC_TYPE_CPORT_RESET 0x00 #define ARPC_TYPE_CPORT_CONNECTED 0x01 #define ARPC_TYPE_CPORT_QUIESCE 0x02 +#define ARPC_TYPE_CPORT_CLEAR 0x03 struct arpc_cport_reset_req { __le16 cport_id; @@ -94,5 +95,9 @@ struct arpc_cport_quiesce_req { __le16 timeout; } __packed; +struct arpc_cport_clear_req { + __le16 cport_id; +} __packed; + #endif /* __ARPC_H */ |