aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus/connection.c
diff options
context:
space:
mode:
authorJohan Hovold <johan@hovoldconsulting.com>2016-05-11 10:18:05 +0200
committerGreg Kroah-Hartman <gregkh@google.com>2016-05-13 15:32:48 +0200
commit3b05d8508f82fc18fe7ef0618671c0603c490c0d (patch)
treef3741ceb86e7db89ec0fd79d8fc2d0a6764a8a69 /drivers/staging/greybus/connection.c
parentgreybus: es2: add support for CDSI1 allocation (diff)
downloadlinux-dev-3b05d8508f82fc18fe7ef0618671c0603c490c0d.tar.xz
linux-dev-3b05d8508f82fc18fe7ef0618671c0603c490c0d.zip
greybus: connection: add camera-data connected workaround
Firmware currently lacks a representation of the offloaded CDSI connections and connected requests sent for these ports therefore fails. Add a temporary work-around until this has been resolved in firmware. Signed-off-by: Johan Hovold <johan@hovoldconsulting.com> Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org> Reviewed-by: Laurent Pinchart <laurent.pinchart@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/connection.c')
-rw-r--r--drivers/staging/greybus/connection.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/staging/greybus/connection.c b/drivers/staging/greybus/connection.c
index 395a9dfc99c0..f803d40413ac 100644
--- a/drivers/staging/greybus/connection.c
+++ b/drivers/staging/greybus/connection.c
@@ -402,6 +402,16 @@ static int gb_connection_control_connected(struct gb_connection *connection)
if (gb_connection_is_static(connection))
return 0;
+ /*
+ * HACK: Suppress connected request for the offloaded camera
+ * connection as it is currently not supported by firmware. Note that
+ * the corresponding non-fatal disconnected event is still sent.
+ */
+ if (gb_connection_is_offloaded(connection) &&
+ connection->flags & GB_CONNECTION_FLAG_CDSI1) {
+ return 0;
+ }
+
control = connection->intf->control;
if (connection == control->connection)