]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
greybus: arche-platform: Disable wake/detect interrupt in poweroff
authorVaibhav Hiremath <vaibhav.hiremath@linaro.org>
Wed, 24 Feb 2016 23:07:39 +0000 (04:37 +0530)
committerGreg Kroah-Hartman <gregkh@google.com>
Fri, 26 Feb 2016 00:24:23 +0000 (16:24 -0800)
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>
drivers/staging/greybus/arche-platform.c

index 5b393eca7bbabc4d10ef6a5c24518dbee82e320e..21a84389bd3ac2b381c9c231dff42d0d61275847 100644 (file)
@@ -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);