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

Add a host-device cport_connected callback, which will be called after a
connection has been created and that can be used by the host-device
driver to make sure its internal state is updated to match the CPort
attributes set by the SVC.

This callback will eventually replace the cport_features_enable
callback.

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