mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 07:03:09 -04:00
greybus: arche-platform: assert wake-detect to complete WAKE_OUT event
After SVC generates WAKE_OUT (pulling wake-detect pin low) and APB is brought out of reset, we need to assert wake-detect again to complete SVC WAKE_OUT logic. 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>
This commit is contained in:
parent
9e1aef82af
commit
1e83ee3321
1 changed files with 4 additions and 2 deletions
|
|
@ -79,9 +79,11 @@ static void svc_delayed_work(struct work_struct *work)
|
|||
|
||||
if (timeout >= 0) {
|
||||
ret = of_platform_populate(np, NULL, NULL, dev);
|
||||
if (!ret)
|
||||
/* Should we set wake_detect gpio to output again? */
|
||||
if (!ret) {
|
||||
/* re-assert wake_detect to confirm SVC WAKE_OUT */
|
||||
gpio_direction_output(arche_pdata->wake_detect_gpio, 1);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
/* FIXME: We may want to limit retries here */
|
||||
|
|
|
|||
Loading…
Reference in a new issue