Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757054AbaFSKk2 (ORCPT ); Thu, 19 Jun 2014 06:40:28 -0400 Received: from lxorguk.ukuu.org.uk ([81.2.110.251]:43144 "EHLO lxorguk.ukuu.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751399AbaFSKk0 (ORCPT ); Thu, 19 Jun 2014 06:40:26 -0400 Date: Thu, 19 Jun 2014 11:40:06 +0100 From: One Thousand Gnomes To: "Li, Aubrey" Cc: "dmitry.torokhov@gmail.com" , "Rafael J. Wysocki" , "linux-input@vger.kernel.org" , LKML Subject: Re: [PATCH] GPIO button wth wakeup attribute is supposed to wake the system up Message-ID: <20140619114006.72ac8e06@alan.etchedpixels.co.uk> In-Reply-To: <53A2340D.9030503@linux.intel.com> References: <53A2340D.9030503@linux.intel.com> Organization: Intel Corporation X-Mailer: Claws Mail 3.9.3 (GTK+ 2.24.23; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 19 Jun 2014 08:51:25 +0800 "Li, Aubrey" wrote: > When the wakeup attribute is set, the GPIO button is capable of > waking up the system from sleep states, including the "freeze" > sleep state. For that to work, its driver needs to pass the > IRQF_NO_SUSPEND flag to devm_request_any_context_irq(), or the > interrupt will be disabled by suspend_device_irqs() and the > system won't be woken up by it from the "freeze" sleep state. > > The suspend_device_irqs() routine is a workaround for drivers > that mishandle interrupts triggered when the devices handled > by them are suspended, so it is safe to use IRQF_NO_SUSPEND in > all drivers that don't have that problem. > > The affected/tested machines include Dell Venue 11 Pro and Asus T100TA. > > Signed-off-by: Aubrey Li > Reviewed-by: Rafael J. Wysocki Reviewed-by: Alan Cox -- 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/