]> git.karo-electronics.de Git - linux-beck.git/commitdiff
greybus: es2: use a single bulk ep pair for all greybus data
authorSandeep Patil <sspatil@google.com>
Mon, 15 Aug 2016 21:20:54 +0000 (14:20 -0700)
committerGreg Kroah-Hartman <gregkh@google.com>
Fri, 2 Sep 2016 12:20:56 +0000 (14:20 +0200)
This matches a corresponding firmware change to declare a single
BULK EP pair for all greybus traffic and 1 BULK IN ep for ARPC.

Thus, avoiding URB submittions for all the other unused BULK IN
endpoints on the HOST side that took considerable amount
of bus time.

Testing Done:
Tested with modified AP<->APB1 loopback test and also with GPBridge
modules to ensure there are no regressions

Signed-off-by: Sandeep Patil <sspatil@google.com>
Reviewed-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Reviewed-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/es2.c

index df104796a2850ac427a3f136ec924831686398f6..97a33439e4f2dd0940200cde88df47d7ff9d275a 100644 (file)
@@ -47,7 +47,7 @@ MODULE_DEVICE_TABLE(usb, id_table);
 #define APB1_LOG_SIZE          SZ_16K
 
 /* Number of bulk in and bulk out couple */
-#define NUM_BULKS              7
+#define NUM_BULKS              1
 
 /* Expected number of bulk out endpoints */
 #define NUM_BULKS_OUT          NUM_BULKS