提交 d2320b2d 编写于 作者: V Vaibhav Hiremath 提交者: Greg Kroah-Hartman

greybus: arche-platform: Disable wake/detect interrupt in poweroff

In poweroff() fn, we are shutting down SVC, so disable interrupt
as well.

Testing Done: Tested on DB3.5 platform.
Signed-off-by: NVaibhav Hiremath <vaibhav.hiremath@linaro.org>
Reviewed-by: NMichael Scott <michael.scott@linaro.org>
Tested-by: NMichael Scott <michael.scott@linaro.org>
Signed-off-by: NGreg Kroah-Hartman <gregkh@google.com>
上级 0786212d
...@@ -265,6 +265,7 @@ static void arche_platform_poweroff_seq(struct arche_platform_drvdata *arche_pda ...@@ -265,6 +265,7 @@ static void arche_platform_poweroff_seq(struct arche_platform_drvdata *arche_pda
/* If in fw_flashing mode, then no need to repeate things again */ /* If in fw_flashing mode, then no need to repeate things again */
if (arche_pdata->state != ARCHE_PLATFORM_STATE_FW_FLASHING) { if (arche_pdata->state != ARCHE_PLATFORM_STATE_FW_FLASHING) {
disable_irq(arche_pdata->wake_detect_irq);
/* Send disconnect/detach event to SVC */ /* Send disconnect/detach event to SVC */
gpio_direction_output(arche_pdata->wake_detect_gpio, 0); gpio_direction_output(arche_pdata->wake_detect_gpio, 0);
usleep_range(100, 200); usleep_range(100, 200);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册