summaryrefslogtreecommitdiff
path: root/drivers/staging/greybus/interface.c
diff options
context:
space:
mode:
authorJohan Hovold <johan@hovoldconsulting.com>2016-01-19 12:51:21 +0100
committerGreg Kroah-Hartman <gregkh@google.com>2016-01-19 12:17:13 -0800
commitb807aa7aa51129b1754e7d17f6a2e30e3c6f7a4b (patch)
tree7cef4e9e6ff0e64a5a9f223396eb272064e82d52 /drivers/staging/greybus/interface.c
parent96a9b9b0eb2c5b9626bdad02c057fb22f133fc86 (diff)
greybus: control: add bundle-version operation
Add bundle-version operation to fetch the version of the bundle class. Retrieve the bundle version of all bundles when initialising the interface in case the control-protocol version is greater than 0.1. 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/interface.c')
-rw-r--r--drivers/staging/greybus/interface.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/staging/greybus/interface.c b/drivers/staging/greybus/interface.c
index c3453502ae22..9c05d8142d8b 100644
--- a/drivers/staging/greybus/interface.c
+++ b/drivers/staging/greybus/interface.c
@@ -228,6 +228,10 @@ int gb_interface_init(struct gb_interface *intf, u8 device_id)
if (ret)
goto free_manifest;
+ ret = gb_control_get_bundle_versions(intf->control);
+ if (ret)
+ goto free_manifest;
+
/* Register the interface and its bundles. */
ret = device_add(&intf->dev);
if (ret) {