Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752848AbaKGXpQ (ORCPT ); Fri, 7 Nov 2014 18:45:16 -0500 Received: from mail-ie0-f175.google.com ([209.85.223.175]:57019 "EHLO mail-ie0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751810AbaKGXpO (ORCPT ); Fri, 7 Nov 2014 18:45:14 -0500 Date: Fri, 7 Nov 2014 15:45:07 -0800 From: Dmitry Torokhov To: NeilBrown Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, GTA04 owners , "Rafael J. Wysocki" Subject: Re: [PATCH] Input: gpio_keys: Make sure wake-up buttons work. Message-ID: <20141107234507.GB4439@dtor-ws> References: <20141108103707.45bcc7e3@notabene.brown> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20141108103707.45bcc7e3@notabene.brown> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Neil, On Sat, Nov 08, 2014 at 10:37:07AM +1100, NeilBrown wrote: > > > If a key is to be used for wake-up, we must not disable > the interrupt during suspend. > > Signed-off-by: NeilBrown > > diff --git a/drivers/input/keyboard/gpio_keys.c b/drivers/input/keyboard/gpio_keys.c > index 8c98e97f8e41..0b5e54ae343e 100644 > --- a/drivers/input/keyboard/gpio_keys.c > +++ b/drivers/input/keyboard/gpio_keys.c > @@ -526,6 +526,8 @@ static int gpio_keys_setup_key(struct platform_device *pdev, > */ > if (!button->can_disable) > irqflags |= IRQF_SHARED; > + if (button->wakeup) > + irqflags |= IRQF_NO_SUSPEND; No, enable_irq_wake() should be enough. I believe Rafael has fixed that in the core, right? > > error = devm_request_any_context_irq(&pdev->dev, bdata->irq, > isr, irqflags, desc, bdata); Thanks. -- Dmitry -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/