Hi,

"enable_irq_wake" is to enable/disable power-management wake-on of an IRQ.
It is wake-on control not interrupt enable control.
In my opinion, to make sure the keys press working when system suspend, both 
wake-on and interrupt should be enabled.
Besides,  for many platforms, the gpio irq chip don't implement the method 
"enable_irq_wake" by setting "IRQCHIP_SKIP_SET_WAKE".
So, I think "IRQF_NO_SUSPEND" is necessary for this case.

BRs

Zheng Qi
PEG->IPG->EIG SH IO/LPSS team

-----Original Message-----
From: Dmitry Torokhov [mailto:dmitry.torok...@gmail.com] 
Sent: Saturday, October 3, 2015 1:42 AM
To: Linus Walleij <linus.wall...@linaro.org>
Cc: Zha, Qipeng <qipeng....@intel.com>; Linux Input 
<linux-input@vger.kernel.org>; Zheng, Qi <qi.zh...@intel.com>; Li, Aubrey 
<aubrey...@intel.com>
Subject: Re: [PATCH] input:gpio-key: set IRQF_NO_SUSPEND for wake capable key

On Fri, Oct 02, 2015 at 03:26:27AM -0700, Linus Walleij wrote:
> On Thu, Sep 17, 2015 at 9:06 AM, Qipeng Zha <qipeng....@intel.com> wrote:
> 
> > When wakeup attribute is set, GPIO key is supposed to wake up the 
> > system from system sleep state, So set IRQF_NO_SUSPEND flag to keep 
> > IRQ enabled during suspend.
> >
> > Signed-off-by: Qi Zheng <qi.zh...@intel.com>
> > Signed-off-by: Aubrey Li <aubrey...@intel.com>
> > Signed-off-by: Qipeng Zha <qipeng....@intel.com>
> 
> Reviewed-by: Linus Walleij <linus.wall...@linaro.org>
> 
> Should this not be tagged for stable?

I do not believe we need this at all. Otherwise every single driver for devices 
that might be wakeup sources needs this flag set. Which would basically means 
it is a noop and we should not suspend IRQ threads by default.

The dirver correctly calls enable_irq_wake() and platform should do whatever it 
needs to make sure wakeup interrupt will be serviced.

Thanks.

--
Dmitry
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to