diff options
author | Vaibhav Hiremath <vaibhav.hiremath@linaro.org> | 2016-02-25 04:37:39 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@google.com> | 2016-02-25 16:24:23 -0800 |
commit | d2320b2dbf95216e9aedf69345862f934ae55138 (patch) | |
tree | 20cadcb964ac5d6544e0ed436dbb56358799f2db /drivers/staging/greybus/arche-platform.c | |
parent | 0786212d6c1514545f33554b7403ea10d8061eb7 (diff) |
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: Vaibhav Hiremath <vaibhav.hiremath@linaro.org>
Reviewed-by: Michael Scott <michael.scott@linaro.org>
Tested-by: Michael Scott <michael.scott@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.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/greybus/arche-platform.c b/drivers/staging/greybus/arche-platform.c index 5b393eca7bba..21a84389bd3a 100644 --- a/drivers/staging/greybus/arche-platform.c +++ b/drivers/staging/greybus/arche-platform.c @@ -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 (arche_pdata->state != ARCHE_PLATFORM_STATE_FW_FLASHING) { + disable_irq(arche_pdata->wake_detect_irq); /* Send disconnect/detach event to SVC */ gpio_direction_output(arche_pdata->wake_detect_gpio, 0); usleep_range(100, 200); |