aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus/connection.c
diff options
context:
space:
mode:
authorJohan Hovold <johan@hovoldconsulting.com>2016-03-03 13:34:39 +0100
committerGreg Kroah-Hartman <gregkh@google.com>2016-03-04 18:26:08 -0800
commit64a6d1388432704c9205fee04be8e6df45fc563b (patch)
treee61abf0fb1cc9fe7ebc18a2581e523eca236d4d2 /drivers/staging/greybus/connection.c
parentgreybus: connection: generalise CPortFlags handling (diff)
downloadlinux-dev-64a6d1388432704c9205fee04be8e6df45fc563b.tar.xz
linux-dev-64a6d1388432704c9205fee04be8e6df45fc563b.zip
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/greybus/connection.c b/drivers/staging/greybus/connection.c
index 01d31f66b28e..96a8aa3285ff 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;
}