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: 21987 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yh0-f69.google.com (mail-yh0-f69.google.com [209.85.213.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id B3D45202AE for ; Tue, 3 Dec 2013 16:40:48 +0000 (UTC) Received: by mail-yh0-f69.google.com with SMTP id a41sf32425506yho.4 for ; Tue, 03 Dec 2013 08:40:48 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=TdMig4qTX3wtFGdYO1bKVcSoofN5/6Gvu3lDFJ1YuEo=; b=SmVWG+3ocNuAJLua6V3KwlLPHPg6fOTT47upHi7dTACiRO3MBSgfGGG8YhY8x2ZCgh tgM/0aWLNPmpx1dp2jLh9TcS0DlPONR3J4yoYqt3uJB5emjkVELifiML2qR5RpTZXN59 I82/HJprUt/bVM27nhZAenJLv2A71Ns+Jjw4temlUv98UYB99meclJ2mF7g6XYzMFpQs 04DCmspqez9gNmSZ7FEZfw/HhaJdyv4t7IgA17xMVgB47d+tB/0BHoJsrNkyXlmEhWLH WffPbITRHLbxV3KrdpTmAriw8OobT2/sXmWFFhgwBpL2xKDQ96clV4v/oVF2FtOANm1/ Vbig== X-Gm-Message-State: ALoCoQl2EmeGkLC/BefTVC9L4FmZfP52RJu1AYgoHwmEBx1mGPkLFvUOWTPSeXUxU/zvk7vcoumx X-Received: by 10.52.76.34 with SMTP id h2mr20562566vdw.2.1386088848444; Tue, 03 Dec 2013 08:40:48 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.86.232 with SMTP id s8ls3326634qez.67.gmail; Tue, 03 Dec 2013 08:40:48 -0800 (PST) X-Received: by 10.58.107.4 with SMTP id gy4mr1301540veb.39.1386088848336; Tue, 03 Dec 2013 08:40:48 -0800 (PST) Received: from mail-ve0-f177.google.com (mail-ve0-f177.google.com [209.85.128.177]) by mx.google.com with ESMTPS id xn8si6849153vdc.87.2013.12.03.08.40.48 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 03 Dec 2013 08:40:48 -0800 (PST) Received-SPF: neutral (google.com: 209.85.128.177 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.177; Received: by mail-ve0-f177.google.com with SMTP id db12so10442096veb.36 for ; Tue, 03 Dec 2013 08:40:48 -0800 (PST) X-Received: by 10.58.50.194 with SMTP id e2mr112155veo.54.1386088848146; Tue, 03 Dec 2013 08:40:48 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp222637vcz; Tue, 3 Dec 2013 08:40:47 -0800 (PST) X-Received: by 10.67.3.68 with SMTP id bu4mr11886533pad.144.1386088847403; Tue, 03 Dec 2013 08:40:47 -0800 (PST) Received: from mail-pb0-f51.google.com (mail-pb0-f51.google.com [209.85.160.51]) by mx.google.com with ESMTPS id sg3si51874883pbb.13.2013.12.03.08.40.46 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 03 Dec 2013 08:40:46 -0800 (PST) Received-SPF: neutral (google.com: 209.85.160.51 is neither permitted nor denied by best guess record for domain of hanjun.guo@linaro.org) client-ip=209.85.160.51; Received: by mail-pb0-f51.google.com with SMTP id up15so21273642pbc.24 for ; Tue, 03 Dec 2013 08:40:46 -0800 (PST) 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 Cc: linux-acpi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Grant Likely , Matthew Garrett , Olof Johansson , Linus Walleij , Bjorn Helgaas , Rob Herring , Mark Rutland , Jon Masters , patches@linaro.org, linux-kernel@vger.kernel.org, linaro-kernel@lists.linaro.org, linaro-acpi@lists.linaro.org, Hanjun Guo , Graeme Gregory 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-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: hanjun.guo@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.177 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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);