From patchwork Wed Jul 29 10:08:54 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hanjun Guo X-Patchwork-Id: 51629 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f72.google.com (mail-la0-f72.google.com [209.85.215.72]) by patches.linaro.org (Postfix) with ESMTPS id 7074722DB5 for ; Wed, 29 Jul 2015 10:10:26 +0000 (UTC) Received: by lafd3 with SMTP id d3sf2076557laf.1 for ; Wed, 29 Jul 2015 03:10:25 -0700 (PDT) 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:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=0kR8v5q1Asqj6wVI/BFQ1UgGcNC01WKkgJ2U1UOefHc=; b=HFc8zoXpzfXX+nQcUhy+wQQs8tZ1Dq64KSIuFXQNpDqbX17zOPKULVG3K34NVzWJYU 0RdvFXef6EHfcXk+awLa/mYB9hdQiCkZEOFe/XyF7Cy1MBPEV7y/CWrHFo76kHWoIlby e7zDcOV2TFiGDO4vIi/1Rrljybe/7jFm8dBRsX7Kv34MpUCTnSUCr7i8J2NaQB7KR849 eRsfKjq0U4t/GRkzT2cye/f/nBSwy9nQVSLJ56AzwHMvS+/PFTyIyVQSOO110xT7r3wn ix668SUDLvzOSXA3D3tymCLV+9WPxpg/pYVuZcJF896Qrz//GVVx+l3JwBEhV5QluC1Q vfLg== X-Gm-Message-State: ALoCoQlzPO5fzFKVc+vfS/MnRAK4dd1aDInVoY9IoT4B/wdfs4/TRAAzdvqvYVGCqFKsGMXTN7Bo X-Received: by 10.112.13.200 with SMTP id j8mr15651177lbc.14.1438164625427; Wed, 29 Jul 2015 03:10:25 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.23.195 with SMTP id o3ls27365laf.1.gmail; Wed, 29 Jul 2015 03:10:25 -0700 (PDT) X-Received: by 10.152.219.3 with SMTP id pk3mr37675862lac.114.1438164625280; Wed, 29 Jul 2015 03:10:25 -0700 (PDT) Received: from mail-la0-f50.google.com (mail-la0-f50.google.com. [209.85.215.50]) by mx.google.com with ESMTPS id a7si21118769lab.49.2015.07.29.03.10.25 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 29 Jul 2015 03:10:25 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.50 as permitted sender) client-ip=209.85.215.50; Received: by lafd3 with SMTP id d3so3211234laf.1 for ; Wed, 29 Jul 2015 03:10:25 -0700 (PDT) X-Received: by 10.112.125.34 with SMTP id mn2mr34303055lbb.76.1438164625177; Wed, 29 Jul 2015 03:10:25 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.7.198 with SMTP id l6csp2652672lba; Wed, 29 Jul 2015 03:10:24 -0700 (PDT) X-Received: by 10.107.128.214 with SMTP id k83mr102578ioi.7.1438164621907; Wed, 29 Jul 2015 03:10:21 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c11si8519333pat.225.2015.07.29.03.10.21; Wed, 29 Jul 2015 03:10:21 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-acpi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752311AbbG2KKQ (ORCPT + 6 others); Wed, 29 Jul 2015 06:10:16 -0400 Received: from mail-pa0-f46.google.com ([209.85.220.46]:35235 "EHLO mail-pa0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752206AbbG2KKO (ORCPT ); Wed, 29 Jul 2015 06:10:14 -0400 Received: by pabkd10 with SMTP id kd10so3383654pab.2 for ; Wed, 29 Jul 2015 03:10:14 -0700 (PDT) X-Received: by 10.66.147.131 with SMTP id tk3mr93121995pab.104.1438164614138; Wed, 29 Jul 2015 03:10:14 -0700 (PDT) Received: from localhost ([180.150.157.4]) by smtp.googlemail.com with ESMTPSA id cj7sm39873551pdb.33.2015.07.29.03.10.12 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 29 Jul 2015 03:10:13 -0700 (PDT) From: Hanjun Guo To: Marc Zyngier , Jason Cooper , Will Deacon , Catalin Marinas , "Rafael J. Wysocki" Cc: Thomas Gleixner , Jiang Liu , Bjorn Helgaas , Lorenzo Pieralisi , Suravee Suthikulpanit , Timur Tabi , Tomasz Nowicki , Grant Likely , Mark Brown , Wei Huang , linux-arm-kernel@lists.infradead.org, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, linaro-acpi@lists.linaro.org, Hanjun Guo Subject: [PATCH v4 05/10] irqchip / GICv3: remove the useless comparision of device node in xlate Date: Wed, 29 Jul 2015 18:08:54 +0800 Message-Id: <1438164539-29256-6-git-send-email-hanjun.guo@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1438164539-29256-1-git-send-email-hanjun.guo@linaro.org> References: <1438164539-29256-1-git-send-email-hanjun.guo@linaro.org> Sender: linux-acpi-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-acpi@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: hanjun.guo@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.50 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , In gic_irq_domain_xlate(), we match the domain's device node to the controller and it turns out pretty useless, because we're always registering the GIC domain with its device_node on DT, this is really guaranteed to match. Since we unify the way of matching irqdomain in DT and ACPI, this is also a blocker of making this function usable in the context of ACPI, so just remove it. Signed-off-by: Hanjun Guo --- drivers/irqchip/irq-gic-v3.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/irqchip/irq-gic-v3.c b/drivers/irqchip/irq-gic-v3.c index 19a65de..c0b96c6 100644 --- a/drivers/irqchip/irq-gic-v3.c +++ b/drivers/irqchip/irq-gic-v3.c @@ -706,8 +706,6 @@ static int gic_irq_domain_xlate(struct irq_domain *d, const u32 *intspec, unsigned int intsize, unsigned long *out_hwirq, unsigned int *out_type) { - if (irq_domain_get_of_node(d) != controller) - return -EINVAL; if (intsize < 3) return -EINVAL;