greybus: es2: implement flush callback
authorJohan Hovold <johan@hovoldconsulting.com>
Fri, 26 Aug 2016 10:55:47 +0000 (12:55 +0200)
committerGreg Kroah-Hartman <gregkh@google.com>
Fri, 26 Aug 2016 11:21:13 +0000 (13:21 +0200)
commitd2dee94b66162d0839dcccee663c90400492fd1b
treee93dfbf1f6c6c99f2f09c354191c410d19350bf7
parent6ac9166d4e91a6dea03b64b64f128e0f927aa7ec
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>
drivers/staging/greybus/arpc.h
drivers/staging/greybus/es2.c