Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 77616548 authored by Fabien Parent's avatar Fabien Parent Committed by Alex Elder
Browse files

greybus: connection: remove CDSI1 hack



This hack is not necessary anymore since the firmware is now able to
handle correctly (dis)connect{ed,ing} operations on the CDSI CPort.

Testing Done: Checked that I could start the camera app several time
              and got the preview each time.

Signed-off-by: default avatarFabien Parent <fparent@baylibre.com>
Reviewed-by: default avatarLaurent Pinchart <laurent.pinchart@linaro.org>
Reviewed-by: default avatarJohan Hovold <johan@hovoldconsulting.com>
Signed-off-by: default avatarAlex Elder <elder@linaro.org>
parent 6f4219dd
Loading
Loading
Loading
Loading
+0 −10
Original line number Diff line number Diff line
@@ -442,16 +442,6 @@ 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;
	}

	if (gb_connection_is_control(connection))
		return 0;