From: Vaibhav Hiremath Date: Wed, 24 Feb 2016 23:07:39 +0000 (+0530) Subject: greybus: arche-platform: Disable wake/detect interrupt in poweroff X-Git-Tag: v5.15~12752^2~378^2~21^2~639 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d2320b2dbf95216e9aedf69345862f934ae55138;p=platform%2Fkernel%2Flinux-starfive.git 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 Reviewed-by: Michael Scott Tested-by: Michael Scott Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/greybus/arche-platform.c b/drivers/staging/greybus/arche-platform.c index 5b393ec..21a8438 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);