aboutsummaryrefslogtreecommitdiff
path: root/drivers/staging/greybus/connection.c
diff options
context:
space:
mode:
authorGravatar Johan Hovold <johan@hovoldconsulting.com> 2016-01-21 17:34:09 +0100
committerGravatar Greg Kroah-Hartman <gregkh@google.com> 2016-01-21 22:45:09 -0800
commit98fdf5a037f0789f1ea6e22431a4a4cc7c41829d (patch)
tree8d7cb053d2dfdce35334440311b53d5edf755d77 /drivers/staging/greybus/connection.c
parentgreybus: add bundle class to the bundle uevent (diff)
downloadlinux-98fdf5a037f0789f1ea6e22431a4a4cc7c41829d.tar.gz
linux-98fdf5a037f0789f1ea6e22431a4a4cc7c41829d.tar.bz2
linux-98fdf5a037f0789f1ea6e22431a4a4cc7c41829d.zip
greybus: core: defer connection creation to driver probe
Defer connection creation to bundle driver probe instead of creating them when initialising the interface and parsing the manifest. Store copies of the CPorts descriptors in the bundle for the drivers to use, and update the legacy driver. This is needed for drivers that need more control over host-device resource management, for example, when a protocol needs to use a dedicated host CPort for traffic offloading (e.g. camera data). This also avoids allocating host CPorts for bundles that are not bound to a driver or for remote CPorts that a driver does not need. Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Johan Hovold <johan@hovoldconsulting.com> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/connection.c')
-rw-r--r--drivers/staging/greybus/connection.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/staging/greybus/connection.c b/drivers/staging/greybus/connection.c
index 88c8a3fab2c6..c92af6e1a11f 100644
--- a/drivers/staging/greybus/connection.c
+++ b/drivers/staging/greybus/connection.c
@@ -232,6 +232,7 @@ gb_connection_create_dynamic(struct gb_interface *intf,
return gb_connection_create(intf->hd, -1, intf, bundle, cport_id,
protocol_id);
}
+EXPORT_SYMBOL_GPL(gb_connection_create_dynamic);
static int gb_connection_hd_cport_enable(struct gb_connection *connection)
{
@@ -546,6 +547,7 @@ void gb_connection_destroy(struct gb_connection *connection)
gb_connection_put(connection);
}
+EXPORT_SYMBOL_GPL(gb_connection_destroy);
void gb_connection_latency_tag_enable(struct gb_connection *connection)
{