From patchwork Fri Jan 17 12:25:08 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hanjun Guo X-Patchwork-Id: 3504191 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 67E8B9F2E9 for ; Fri, 17 Jan 2014 12:50:32 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 565512012F for ; Fri, 17 Jan 2014 12:50:31 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 7E8E220120 for ; Fri, 17 Jan 2014 12:50:30 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1W48sU-0003Gs-VD; Fri, 17 Jan 2014 12:50:27 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1W48sS-0007v9-HE; Fri, 17 Jan 2014 12:50:24 +0000 Received: from mail-pd0-f172.google.com ([209.85.192.172]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1W48sP-0007tW-Rz for linux-arm-kernel@lists.infradead.org; Fri, 17 Jan 2014 12:50:22 +0000 Received: by mail-pd0-f172.google.com with SMTP id z10so3962728pdj.31 for ; Fri, 17 Jan 2014 04:50:00 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=W/w+eU6w0FBEQEsvpQOiCDug2N0bFua7iwz/gooz78Q=; b=YbfSS7RrSzEhq3I1gfqVDhGthBfPbPKxNi5YIpIrDBIfPk4Zvum1quw6gPYkiHuKdA ywa8gBb5tkhgovsXY6XbS8hx3NIlGIw0ov6xz6/cK5Lds5IhH1vrIJ3cnmbXCXQ1NfJs NCiyO4aKJcjLOxAzauXBdUDJxbh/w1zfGoyKAog/5A+fpUYeLsIGq2DLOjtuMDbijgcU j+9GRccHreuXDLiu9Fc/j2uxkOqSdUGB8D9itgK0lDXWrL1V8zb0ZD+X/cC58bTn8F85 m3yNY8Rerx6gNBoa/NPWo1FoWQKS3pPj7uQujeE+i8ML5oRAVP4ziSoAPQyNVKRxLsBR /ikw== X-Gm-Message-State: ALoCoQlcjbXsfCijCTPMezyzKjD0tvvlt44omG4kn+/fBY+0vGpDMvnWjE9Mm41JO94GKvpwbrhw X-Received: by 10.68.12.138 with SMTP id y10mr1814017pbb.101.1389963000731; Fri, 17 Jan 2014 04:50:00 -0800 (PST) Received: from localhost ([218.17.215.175]) by mx.google.com with ESMTPSA id ug2sm30359279pac.21.2014.01.17.04.49.10 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 17 Jan 2014 04:49:59 -0800 (PST) From: Hanjun Guo To: "Rafael J. Wysocki" , Catalin Marinas , Will Deacon , Russell King - ARM Linux Subject: [PATCH 14/20] Irqchip / gic: Set as default domain so we can access from ACPI Date: Fri, 17 Jan 2014 20:25:08 +0800 Message-Id: <1389961514-13562-15-git-send-email-hanjun.guo@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1389961514-13562-1-git-send-email-hanjun.guo@linaro.org> References: <1389961514-13562-1-git-send-email-hanjun.guo@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140117_075021_985138_21958E8C X-CRM114-Status: GOOD ( 12.68 ) X-Spam-Score: -1.1 (-) Cc: Mark Rutland , Matthew Garrett , linaro-kernel@lists.linaro.org, Graeme Gregory , Arnd Bergmann , Rob Herring , Linus Walleij , Olof Johansson , linux-kernel@vger.kernel.org, linaro-acpi@lists.linaro.org, linux-acpi@vger.kernel.org, Hanjun Guo , patches@linaro.org, Grant Likely , Bjorn Helgaas , linux-arm-kernel@lists.infradead.org, Charles.Garcia-Tobin@arm.com X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RCVD_IN_SORBS_WEB,RP_MATCHES_RCVD,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Only one GIC is supported in ACPI 5.0, even cascade GIC is not supported. So if we set the GIC as the default domain then we can access it for IRQ mapping within the ACPI code. Signed-off-by: Graeme Gregory Signed-off-by: Hanjun Guo --- drivers/irqchip/irq-gic.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/irqchip/irq-gic.c b/drivers/irqchip/irq-gic.c index 341c601..40fde7b 100644 --- a/drivers/irqchip/irq-gic.c +++ b/drivers/irqchip/irq-gic.c @@ -963,6 +963,13 @@ void __init gic_init_bases(unsigned int gic_nr, int irq_start, register_cpu_notifier(&gic_cpu_notifier); #endif set_handle_irq(gic_handle_irq); + + /* + * do not set default host for GIC domain multi-times. + * FIXME: This probably needs revisited when multi GICs + * supported + */ + irq_set_default_host(gic->domain); } gic_chip.flags |= gic_arch_extn.flags;