From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762451AbcINNgy (ORCPT ); Wed, 14 Sep 2016 09:36:54 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:34802 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755671AbcINNgt (ORCPT ); Wed, 14 Sep 2016 09:36:49 -0400 Date: Wed, 14 Sep 2016 15:34:18 +0200 (CEST) From: Thomas Gleixner To: Alexandre Torgue cc: Maxime Coquelin , Jason Cooper , Marc Zyngier , Linus Walleij , Mark Rutland , Rob Herring , linux-gpio@vger.kernel.org, arnd@arndb.de, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Daniel Thompson , bruherrera@gmail.com, lee.jones@linaro.org Subject: Re: [PATCH v5 2/9] drivers: irqchip: Add STM32 external interrupts support In-Reply-To: Message-ID: References: <1473432124-6784-1-git-send-email-alexandre.torgue@st.com> <1473432124-6784-3-git-send-email-alexandre.torgue@st.com> <6941f61d-0b33-4108-0135-b11887cd0488@st.com> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 14 Sep 2016, Alexandre Torgue wrote: > On 09/14/2016 11:19 AM, Thomas Gleixner wrote: > > > > Now what really bugs me is that you do that at all. An interrupt which is > > freed must be masked already. Why is it unmasked in the first place? > > Honestly I don't know. When "devm_free_irq" is called to release virq, there > is no issue and interrupt is well masked. But, when I tried to use > "irq_dispose_mapping(virq)" I observed that .free is called (child and parent > domain) but interrupt is not masked. Well, you just used some function in some context which is not relevant to the normal operation. So adding that mask() is just paranoia for no value. Thanks, tglx