Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754101AbbGAPyp (ORCPT ); Wed, 1 Jul 2015 11:54:45 -0400 Received: from down.free-electrons.com ([37.187.137.238]:45953 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750846AbbGAPyi (ORCPT ); Wed, 1 Jul 2015 11:54:38 -0400 Date: Wed, 1 Jul 2015 17:54:36 +0200 From: Thomas Petazzoni To: Gregory CLEMENT Cc: Jason Cooper , Andrew Lunn , Sebastian Hesselbarth , Ezequiel Garcia , linux-arm-kernel@lists.infradead.org, Maxime Ripard , Boris BREZILLON , Lior Amsalem , Tawfik Bayouk , Nadav Haklai , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 3/4] ARM: mvebu: Allow using the GIC for wakeup in standby mode Message-ID: <20150701175436.7dff0754@free-electrons.com> In-Reply-To: <1435684740-24912-4-git-send-email-gregory.clement@free-electrons.com> References: <1435684740-24912-1-git-send-email-gregory.clement@free-electrons.com> <1435684740-24912-4-git-send-email-gregory.clement@free-electrons.com> Organization: Free Electrons X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.27; 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 Content-Length: 960 Lines: 33 Dear Gregory CLEMENT, On Tue, 30 Jun 2015 19:18:59 +0200, Gregory CLEMENT wrote: > static void __init mvebu_init_irq(void) > { > + if (of_machine_is_compatible("marvell,armada375") || > + of_machine_is_compatible("marvell,armada380") || > + of_machine_is_compatible("marvell,armada390")) What we really want to know is if we're using the GIC, so what about instead: np = of_find_compatible_node(NULL, NULL, "arm,cortex-a9-gic"); if (np) gic_set_irqchip_flags(IRQCHIP_SKIP_SET_WAKE | IRQCHIP_MASK_ON_SUSPEND); of_node_put(np); (Not even compile-tested). Thanks, Thomas -- Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -- 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/