From patchwork Tue Dec 3 16:39:10 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hanjun Guo X-Patchwork-Id: 3277951 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 69FB8C0D4A for ; Tue, 3 Dec 2013 17:18:05 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4F0C52022F for ; Tue, 3 Dec 2013 17:18:04 +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 12164201FD for ; Tue, 3 Dec 2013 17:18:03 +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 1Vnt2Q-00070A-Sf; Tue, 03 Dec 2013 16:41:31 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Vnt26-0001Ba-5N; Tue, 03 Dec 2013 16:41:10 +0000 Received: from mail-pb0-f46.google.com ([209.85.160.46]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Vnt23-000196-On for linux-arm-kernel@lists.infradead.org; Tue, 03 Dec 2013 16:41:08 +0000 Received: by mail-pb0-f46.google.com with SMTP id md12so21218125pbc.5 for ; Tue, 03 Dec 2013 08:40:46 -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=TdMig4qTX3wtFGdYO1bKVcSoofN5/6Gvu3lDFJ1YuEo=; b=ANbCW3+uax6K+Zl6cTQPxSDEFtBHiDREMt2kCPQfbBNWm1ILRrj3TESrJ1JChmm/UP ee5nmafwT05VYBqwxbStb/JdibtbCKrN2aDen7Mq1K3AFap2+9+K6qepFiXIU1PRCrq5 wnKMKvGclOvcO57JUfCmwmY6msQsiVgWM4x875whxHgmhlnXlKJoLJLvnjVDuZ9pYFoN jE3c5IxGk2W8c2J1ajgKDZGcjUDMuV5nPK3t4t3ZssDZPp4aDdxH186z5iDthDvUoYWZ YwInA68WCwKvb8hUEe+8uT6txoLTVX/ca5G/LqE0p9hB69kW+QpcUE48DJiWYx0u4VDe WYXA== X-Gm-Message-State: ALoCoQmjhPsiHFzqAIMUYTbZM8mHpUlg2BcNl6Xt97vLN+VrJJeLwovnWhLPRSoNS21lYZlbEtRp X-Received: by 10.67.21.226 with SMTP id hn2mr76682611pad.69.1386088845567; Tue, 03 Dec 2013 08:40:45 -0800 (PST) Received: from localhost ([61.148.199.138]) by mx.google.com with ESMTPSA id hw10sm131160941pbc.24.2013.12.03.08.40.39 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 03 Dec 2013 08:40:44 -0800 (PST) From: Hanjun Guo To: "Rafael J. Wysocki" , Catalin Marinas , Will Deacon , Russell King - ARM Linux , Daniel Lezcano Subject: [RFC part2 PATCH 6/9] Irqchip / gic: Set as default domain so we can access from ACPI Date: Wed, 4 Dec 2013 00:39:10 +0800 Message-Id: <1386088753-2850-7-git-send-email-hanjun.guo@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1386088753-2850-1-git-send-email-hanjun.guo@linaro.org> References: <1386088753-2850-1-git-send-email-hanjun.guo@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20131203_114107_910600_12F7D4FF X-CRM114-Status: GOOD ( 11.92 ) X-Spam-Score: -2.6 (--) Cc: Mark Rutland , Matthew Garrett , linaro-kernel@lists.linaro.org, Graeme Gregory , patches@linaro.org, Linus Walleij , Olof Johansson , linux-kernel@vger.kernel.org, Rob Herring , linaro-acpi@lists.linaro.org, linux-acpi@vger.kernel.org, Jon Masters , Grant Likely , Bjorn Helgaas , linux-arm-kernel@lists.infradead.org, Hanjun Guo 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=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable 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 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 9031171..f522c9a 100644 --- a/drivers/irqchip/irq-gic.c +++ b/drivers/irqchip/irq-gic.c @@ -957,6 +957,13 @@ void __init gic_init_bases(unsigned int gic_nr, int irq_start, if (WARN_ON(!gic->domain)) return; + /* + * do not set default host for GIC domain multi-times. + * FIXME: This probably needs revisited when multi GICs supported + */ + if (!gic_nr) + irq_set_default_host(gic->domain); + #ifdef CONFIG_SMP set_smp_cross_call(gic_raise_softirq); register_cpu_notifier(&gic_cpu_notifier);