Message ID | 1386088753-2850-7-git-send-email-hanjun.guo@linaro.org |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBDWLZTMOWUARBEET7CKAKGQEXFDFT2Y@linaro.org> 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 <linaro@patches.linaro.org>; Tue, 3 Dec 2013 16:40:48 +0000 (UTC) Received: by mail-yh0-f69.google.com with SMTP id a41sf32425506yho.4 for <linaro@patches.linaro.org>; 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 <patchwork-forward@linaro.org> (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 <patchwork-forward@linaro.org>; 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 <patches@linaro.org> (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 <patches@linaro.org>; 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 <multiple recipients> (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 03 Dec 2013 08:40:44 -0800 (PST) From: Hanjun Guo <hanjun.guo@linaro.org> To: "Rafael J. Wysocki" <rjw@rjwysocki.net>, Catalin Marinas <catalin.marinas@arm.com>, Will Deacon <will.deacon@arm.com>, Russell King - ARM Linux <linux@arm.linux.org.uk>, Daniel Lezcano <daniel.lezcano@linaro.org> Cc: linux-acpi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Grant Likely <grant.likely@linaro.org>, Matthew Garrett <mjg59@srcf.ucam.org>, Olof Johansson <olof@lixom.net>, Linus Walleij <linus.walleij@linaro.org>, Bjorn Helgaas <bhelgaas@google.com>, Rob Herring <rob.herring@calxeda.com>, Mark Rutland <mark.rutland@arm.com>, Jon Masters <jonathan@jonmasters.org>, patches@linaro.org, linux-kernel@vger.kernel.org, linaro-kernel@lists.linaro.org, linaro-acpi@lists.linaro.org, Hanjun Guo <hanjun.guo@linaro.org>, Graeme Gregory <graeme.gregory@linaro.org> 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: <patchwork-forward.linaro.org> X-Google-Group-Id: 836684582541 List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Unsubscribe: <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe>, <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com> |
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);