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)
commit7dea1d5f8a9d3141881dab40bb55c1a7ae84d8ab
treeb7b2ed23d96840454734d30b1d8bc5e432beb683
parent7ff6e0128a7da5d5a8b51abb09fafeb7b8944792
greybus: interface: Mode switch takes over a second

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