greybus: hd/es2: add cport_quiesce callback and ARPC
authorJohan Hovold <johan@hovoldconsulting.com>
Wed, 10 Aug 2016 10:58:43 +0000 (12:58 +0200)
committerGreg Kroah-Hartman <gregkh@google.com>
Thu, 11 Aug 2016 12:13:07 +0000 (14:13 +0200)
commit0e7cd0d259890f21d13171d5798eed24a03903dc
tree21d1a9711e5108d280f910289069a40c2155f0d0
parenta9dc1cf5b7b5ce8183249c2229ae0ab849525e37
greybus: hd/es2: add cport_quiesce callback and ARPC

Add a host-device cport_quiesce callback, which will be called as part
of the new connection tear-down sequence to disable flow control after
first making sure that enough peer buffer space is available for the
next messages about to be sent.

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>
drivers/staging/greybus/arpc.h
drivers/staging/greybus/es2.c
drivers/staging/greybus/hd.h