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: 6891681 Return-Path: X-Original-To: patchwork-linux-acpi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 569729F52D for ; Wed, 29 Jul 2015 10:10:23 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7A8252079C for ; Wed, 29 Jul 2015 10:10:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1C525207A2 for ; Wed, 29 Jul 2015 10:10:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752311AbbG2KKQ (ORCPT ); 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-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=sX5vdTpblDMzQRxck1/FNVKrKSjjxpMkptYSmDV4BS4=; b=a6VzEYn9xWwJToaIzy9sJDzZENa+I6haKX0//eHAImYrImitpOAHqwdzOTP6iYfley yFp2wpz5w9PyMpCErvXLBeWPN4o9XPbEZP7ltM0ku47mvDvOr1SVnxP5ZWuS2VvSlTvj TqtVbPR854xUVtvHmHj3yTcpSbzEXTz1ikUS1YxMV3+d96od4Nv95MPw5LmJyfde4HDF DrTDGvuI9Jdy9wDYSBrFoDzksvLd3B14ss6Wr4mtGavYReMH1B9c5B4qmLLJFVbjU8Ze 9O85gx8rexgAokq1UDC2Yt7T8/pyvd9U5w0qg0a+ZP/uotut54nOtdzwQDvXXPEtQXlz wbQQ== X-Gm-Message-State: ALoCoQl8Rl1lXRoUbwwYU/GFzglFkPY3NevXElmZsMlzcOi3Dd6ZHcOPmcBIZd8IThU5xJafU9yG 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: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org X-Spam-Status: No, score=-8.3 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham 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 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;