Commit a3043d9e authored by Michael Scott's avatar Michael Scott Committed by Greg Kroah-Hartman

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: default avatarMichael Scott <michael.scott@linaro.org>
Reviewed-by: default avatarVaibhav Hiremath <vaibhav.hiremath@linaro.org>
Tested-by: default avatarVaibhav Hiremath <vaibhav.hiremath@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent 1e83ee33
...@@ -52,7 +52,7 @@ static void svc_delayed_work(struct work_struct *work) ...@@ -52,7 +52,7 @@ static void svc_delayed_work(struct work_struct *work)
container_of(work, struct arche_platform_drvdata, delayed_work.work); container_of(work, struct arche_platform_drvdata, delayed_work.work);
struct device *dev = arche_pdata->dev; struct device *dev = arche_pdata->dev;
struct device_node *np = dev->of_node; struct device_node *np = dev->of_node;
int timeout = 10; int timeout = 50;
int ret; int ret;
/* /*
...@@ -74,7 +74,7 @@ static void svc_delayed_work(struct work_struct *work) ...@@ -74,7 +74,7 @@ static void svc_delayed_work(struct work_struct *work)
if (gpio_get_value(arche_pdata->wake_detect_gpio) == 0) if (gpio_get_value(arche_pdata->wake_detect_gpio) == 0)
break; break;
msleep(500); msleep(100);
} while(timeout--); } while(timeout--);
if (timeout >= 0) { if (timeout >= 0) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment