From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752729AbbBXACq (ORCPT ); Mon, 23 Feb 2015 19:02:46 -0500 Received: from v094114.home.net.pl ([79.96.170.134]:64378 "HELO v094114.home.net.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1751861AbbBXACp (ORCPT ); Mon, 23 Feb 2015 19:02:45 -0500 From: "Rafael J. Wysocki" To: Mark Rutland , Peter Zijlstra Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Boris Brezillon , Ian Campbell , Jonathan Corbet , "Rafael J. Wysocki" , Thomas Gleixner , Linux PM list Subject: Re: [PATCH] genirq: better describe IRQF_NO_SUSPEND semantics Date: Tue, 24 Feb 2015 01:26:05 +0100 Message-ID: <3607139.EdDhxoz0si@vostro.rjw.lan> User-Agent: KMail/4.11.5 (Linux/3.19.0+; KDE/4.11.5; x86_64; ; ) In-Reply-To: <1424444026-31231-1-git-send-email-mark.rutland@arm.com> References: <1424444026-31231-1-git-send-email-mark.rutland@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="utf-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Friday, February 20, 2015 02:53:46 PM Mark Rutland wrote: > The IRQF_NO_SUSPEND flag is intended to be used for interrupts required > to be enabled during the suspend-resume cycle. This mostly consists of > IPIs and timer interrupts, potentially including chained irqchip > interrupts if these are necessary to handle timers or IPIs. If an > interrupt does not fall into one of the aforementioned categories, > requesting it with IRQF_NO_SUSPEND is likely incorrect. > > Using IRQF_NO_SUSPEND does not guarantee that the interrupt can wake the > system from a suspended state. For an interrupt to be able to trigger a > wakeup, it may be necessary to program various components of the system. > In these cases it is necessary to use {enable,disabled}_irq_wake. > > Unfortunately, several drivers assume that IRQF_NO_SUSPEND ensures that > an IRQ can wake up the system, and the documentation can be read > ambiguously w.r.t. this property. > > This patch updates the documentation regarding IRQF_NO_SUSPEND to make > this caveat explicit, hopefully making future misuse rarer. Cleanup of > existing misuse will occur as part of later patch series. > > Cc: Boris Brezillon > Cc: Ian Campbell > Cc: Jonathan Corbet > Cc: Peter Zijlstra > Cc: Rafael J. Wysocki > Cc: Thomas Gleixner > Signed-off-by: Mark Rutland Applied to linux-pm.git/linux-next, thanks! Peter, please let me know if you don't want this to go it. Rafael