diff options
author | Johan Hovold <johan@hovoldconsulting.com> | 2016-08-26 12:55:47 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@google.com> | 2016-08-26 13:21:13 +0200 |
commit | d2dee94b66162d0839dcccee663c90400492fd1b (patch) | |
tree | e93dfbf1f6c6c99f2f09c354191c410d19350bf7 /drivers/staging/greybus/arpc.h | |
parent | 6ac9166d4e91a6dea03b64b64f128e0f927aa7ec (diff) |
greybus: es2: implement flush callback
Implement the flush callback which is called as part of connection tear
down to flush host-device queues and stop any ongoing transfers.
Note that this should be considered an optimisation of sort since if
the CPort is stuck waiting for credit, the CPort is likely still stuck
when we try to send the cport_shutdown request over it after the
callback returns.
Signed-off-by: Johan Hovold <johan@hovoldconsulting.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 | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/staging/greybus/arpc.h b/drivers/staging/greybus/arpc.h index 6d277695e01d..d44434f7ed28 100644 --- a/drivers/staging/greybus/arpc.h +++ b/drivers/staging/greybus/arpc.h @@ -80,6 +80,7 @@ struct arpc_response_message { #define ARPC_TYPE_CPORT_CONNECTED 0x01 #define ARPC_TYPE_CPORT_QUIESCE 0x02 #define ARPC_TYPE_CPORT_CLEAR 0x03 +#define ARPC_TYPE_CPORT_FLUSH 0x04 struct arpc_cport_reset_req { __le16 cport_id; @@ -99,5 +100,8 @@ struct arpc_cport_clear_req { __le16 cport_id; } __packed; +struct arpc_cport_flush_req { + __le16 cport_id; +} __packed; #endif /* __ARPC_H */ |