aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus/greybus.h
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2015-07-21 17:44:18 +0530
committerGreg Kroah-Hartman <gregkh@google.com>2015-07-22 10:12:41 -0700
commitd3d448406772e421fb7ed8efd4d02d96cb2ab6f9 (patch)
tree2b78ac7e837816669044de1d603274f10763595b /drivers/staging/greybus/greybus.h
parentgreybus: interface: Update gb_create_control_connection() to support SVC protocol (diff)
downloadlinux-dev-d3d448406772e421fb7ed8efd4d02d96cb2ab6f9.tar.xz
linux-dev-d3d448406772e421fb7ed8efd4d02d96cb2ab6f9.zip
greybus: svc: Add helpers to create AP<->SVC connection
SVC connection is required before the AP knows its position on the endo and type of endo. To enable message processing between the AP and SVC at this time, we need a partially initialized connection which can handle these messages. Once the AP receives more information from the SVC, it can discard this partially initialized connection and create a proper one, tied to a bundle and interface. Destroying the partially initialized connection is a bit tricky, as it is required to send a response to svc-hello. That part will be properly fixed separately. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/greybus.h')
-rw-r--r--drivers/staging/greybus/greybus.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/greybus/greybus.h b/drivers/staging/greybus/greybus.h
index e795016106c2..2214f447df2b 100644
--- a/drivers/staging/greybus/greybus.h
+++ b/drivers/staging/greybus/greybus.h
@@ -102,6 +102,7 @@ struct greybus_host_device {
size_t buffer_size_max;
struct gb_endo *endo;
+ struct gb_connection *initial_svc_connection;
/* Private data for the host driver */
unsigned long hd_priv[0] __aligned(sizeof(s64));