greybus: interface: Mode switch takes over a second
authorViresh Kumar <viresh.kumar@linaro.org>
Mon, 30 May 2016 07:35:10 +0000 (13:05 +0530)
committerGreg Kroah-Hartman <gregkh@google.com>
Thu, 2 Jun 2016 18:15:49 +0000 (11:15 -0700)
Mode switch takes just over a second to complete and the current timeout
of one second isn't sufficient.

Mode-switch logs from EVT 1.5:

[   56.709082] gb-firmware 1-3.3.1: Requested firmware package 'ara_00000126_00001002_fffe0001_ff980067_03.tftf'
[   57.003968] gb_control_mode_switch_operation: 176
[   58.041616] greybus 1-3.3: mode switch detected

Increase the timeout to two seconds.

Tested with EVT 1.5 with gpbridge-test module.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Tested-by: Karthik Ravi Shankar <karthikrs@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/interface.c

index b5d243b..577d15f 100644 (file)
@@ -10,7 +10,7 @@
 #include "greybus.h"
 #include "greybus_trace.h"
 
-#define GB_INTERFACE_MODE_SWITCH_TIMEOUT       1000
+#define GB_INTERFACE_MODE_SWITCH_TIMEOUT       2000
 
 #define GB_INTERFACE_DEVICE_ID_BAD     0xff