From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752680AbbHMJbC (ORCPT ); Thu, 13 Aug 2015 05:31:02 -0400 Received: from foss.arm.com ([217.140.101.70]:33737 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752645AbbHMJbA (ORCPT ); Thu, 13 Aug 2015 05:31:00 -0400 Message-ID: <55CC63D0.8030707@arm.com> Date: Thu, 13 Aug 2015 10:30:56 +0100 From: Sudeep Holla User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.8.0 MIME-Version: 1.0 To: Grygorii Strashko , Marc Zyngier CC: "tglx@linutronix.de" , "tony@atomide.com" , Sudeep Holla , "linux@arm.linux.org.uk" , "jason@lakedaemon.net" , "nsekhar@ti.com" , "linux-kernel@vger.kernel.org" , "balbi@ti.com" , "linux-omap@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" Subject: Re: [PATCH v2 6/6] irqchip: crossbar: fix irq masking at suspend References: <1439401562-28874-1-git-send-email-grygorii.strashko@ti.com> <1439401562-28874-7-git-send-email-grygorii.strashko@ti.com> In-Reply-To: <1439401562-28874-7-git-send-email-grygorii.strashko@ti.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/08/15 18:46, Grygorii Strashko wrote: > All ARM GIC IRQs have to masked during suspend if they are not > wakeup source. Now this is not happen, since switching to > use IRQ domain hierarchy, because suspend_device_irq() only checks flags > in the last IRQ chip in hierarchy for IRQCHIP_MASK_ON_SUSPEND > bit set. And in the case of TI OMAP DRA7 the last IRQ chip is TI Crossbar > which do not have this flag set. > > In case of TI OMAP DRA7 the following IRQ hierarchy is defined: > ARM GIC <- OMAP wakeupgen <- TI CBAR > ARM GIC - IRQCHIP_MASK_ON_SUSPEND=n May be this won't affect your platform or this patch but even GIC marks IRQCHIP_MASK_ON_SUSPEND=y now since GIC doesn't provide any facility to configure the wakeup source and keeps all the interrupt source enabled. We have this flag enabled now as it's always safer to mask all the non wakeup interrupts are masked at the chip level when suspending. Also the beginning of the commit message contradicts when you also say in the following statement IRQCHIP_MASK_ON_SUSPEND=n. So you may need to update the log. Regards, Sudeep