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: 23331 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qa0-f71.google.com (mail-qa0-f71.google.com [209.85.216.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 1EDE620540 for ; Fri, 17 Jan 2014 12:50:03 +0000 (UTC) Received: by mail-qa0-f71.google.com with SMTP id j5sf5922126qaq.2 for ; Fri, 17 Jan 2014 04:50:02 -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=W/w+eU6w0FBEQEsvpQOiCDug2N0bFua7iwz/gooz78Q=; b=iGdOgFsJmM8VBzuqC07Co/wGfM2Jj0nn+He8EhXJNtxw3MmGuyXyIAykJMbIRqZfEW k5bUDpCeoRxCwaITtImv92SB3yAfLV0KRsNoERHdpTyqabB3tztVib9TX9r4icAXLbea MeJOYWlO4qdb37aSrMgbFWrhPwNlDiSXtwDTJ3FkILWsJuxkPRpgLUjbFr7/EU0QBdTS cCOP+cs+NKZrqWCCzYQpltpYSZyytA8ERoXexu4AtrDnL4KzivxyN1HoLK1LQz/HgyY+ rUwv+gMP+4JnlV0GLqPyrELl77PhFm6Mt0pHHUSo49xtHQhPf/Fo+dGRTNuQZ/pqcMF4 hNFQ== X-Gm-Message-State: ALoCoQnDEexuGe3saSjkyT9K8zPkjrHFfHveyy+ufQtydw/5PkNtmUdgQrGS2Ua2W+wU3oNT7oq5 X-Received: by 10.236.127.199 with SMTP id d47mr479193yhi.29.1389963002226; Fri, 17 Jan 2014 04:50:02 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.82.135 with SMTP id i7ls1259599qey.30.gmail; Fri, 17 Jan 2014 04:50:02 -0800 (PST) X-Received: by 10.52.100.135 with SMTP id ey7mr82787vdb.58.1389963002126; Fri, 17 Jan 2014 04:50:02 -0800 (PST) Received: from mail-ve0-f181.google.com (mail-ve0-f181.google.com [209.85.128.181]) by mx.google.com with ESMTPS id x5si4851635veb.149.2014.01.17.04.50.02 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 17 Jan 2014 04:50:02 -0800 (PST) Received-SPF: neutral (google.com: 209.85.128.181 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.181; Received: by mail-ve0-f181.google.com with SMTP id cz12so1536230veb.40 for ; Fri, 17 Jan 2014 04:50:02 -0800 (PST) X-Received: by 10.220.58.202 with SMTP id i10mr822424vch.23.1389963002038; Fri, 17 Jan 2014 04:50:02 -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.59.13.131 with SMTP id ey3csp17176ved; Fri, 17 Jan 2014 04:50:01 -0800 (PST) X-Received: by 10.68.34.37 with SMTP id w5mr1758912pbi.159.1389963001150; Fri, 17 Jan 2014 04:50:01 -0800 (PST) Received: from mail-pd0-f181.google.com (mail-pd0-f181.google.com [209.85.192.181]) by mx.google.com with ESMTPS id k3si10039506pbb.354.2014.01.17.04.50.00 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 17 Jan 2014 04:50:01 -0800 (PST) Received-SPF: neutral (google.com: 209.85.192.181 is neither permitted nor denied by best guess record for domain of hanjun.guo@linaro.org) client-ip=209.85.192.181; Received: by mail-pd0-f181.google.com with SMTP id y10so411575pdj.40 for ; Fri, 17 Jan 2014 04:50:00 -0800 (PST) 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 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 , Arnd Bergmann , patches@linaro.org, linux-kernel@vger.kernel.org, linaro-kernel@lists.linaro.org, linaro-acpi@lists.linaro.org, Charles.Garcia-Tobin@arm.com, Hanjun Guo , Graeme Gregory 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-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.181 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: , 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;