diff options
author | Johan Hovold <johan@hovoldconsulting.com> | 2016-03-03 13:34:39 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@google.com> | 2016-03-04 18:26:08 -0800 |
commit | 64a6d1388432704c9205fee04be8e6df45fc563b (patch) | |
tree | e61abf0fb1cc9fe7ebc18a2581e523eca236d4d2 /drivers/staging/greybus/connection.c | |
parent | 27f25c17ad7fa2b24a24a4e617077dec20a026ce (diff) | |
download | op-kernel-dev-64a6d1388432704c9205fee04be8e6df45fc563b.zip op-kernel-dev-64a6d1388432704c9205fee04be8e6df45fc563b.tar.gz |
greybus: connection: add CSD connection flag
Add CSD connection flag that can be specified when allocating a
connection to enable Controlled Segment Dropping in favour of E2EFC
which is enabled by default.
Note that most connections are expected to have E2EFC enabled.
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/greybus/connection.c b/drivers/staging/greybus/connection.c index 01d31f6..96a8aa3 100644 --- a/drivers/staging/greybus/connection.c +++ b/drivers/staging/greybus/connection.c @@ -339,7 +339,7 @@ gb_connection_svc_connection_create(struct gb_connection *connection) cport_flags = GB_SVC_CPORT_FLAG_CSV_N; if (intf->boot_over_unipro) { cport_flags |= GB_SVC_CPORT_FLAG_CSD_N; - } else { + } else if (gb_connection_e2efc_enabled(connection)) { cport_flags |= GB_SVC_CPORT_FLAG_CSD_N | GB_SVC_CPORT_FLAG_E2EFC; } |