summaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus/arche-platform.c
diff options
context:
space:
mode:
authorMichael Scott <michael.scott@linaro.org>2016-01-27 16:41:01 -0800
committerGreg Kroah-Hartman <gregkh@google.com>2016-01-29 08:50:13 -0800
commita3043d9e717ace89a34352e57d88c70584f9c768 (patch)
treec5b313daf39fc7c65412f062f483b881973956d3 /drivers/staging/greybus/arche-platform.c
parent1e83ee3321447679eb327fed90f366ef18411778 (diff)
greybus: arche-platform: reduce wait between WAKE_OUT checks
SVC WAKE_OUT loop is estimated 400ms during which wake_detect line is pulled low for AP detection. On AP side we have 500ms delay between checks. To avoid timing issues, reduce delay between checks and raise total # of checks so that overall time for sequence is the same. Testing Done: - Used for DB3.5/EVT1.5 hardware during bringup - Regression tested on DB3.1+ES2, DB3.1+ES3 Signed-off-by: Michael Scott <michael.scott@linaro.org> Reviewed-by: Vaibhav Hiremath <vaibhav.hiremath@linaro.org> Tested-by: Vaibhav Hiremath <vaibhav.hiremath@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/arche-platform.c')
-rw-r--r--drivers/staging/greybus/arche-platform.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/greybus/arche-platform.c b/drivers/staging/greybus/arche-platform.c
index f18cec624f78..65c8f718dd86 100644
--- a/drivers/staging/greybus/arche-platform.c
+++ b/drivers/staging/greybus/arche-platform.c
@@ -52,7 +52,7 @@ static void svc_delayed_work(struct work_struct *work)
container_of(work, struct arche_platform_drvdata, delayed_work.work);
struct device *dev = arche_pdata->dev;
struct device_node *np = dev->of_node;
- int timeout = 10;
+ int timeout = 50;
int ret;
/*
@@ -74,7 +74,7 @@ static void svc_delayed_work(struct work_struct *work)
if (gpio_get_value(arche_pdata->wake_detect_gpio) == 0)
break;
- msleep(500);
+ msleep(100);
} while(timeout--);
if (timeout >= 0) {