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: 6891881 Return-Path: X-Original-To: patchwork-linux-arm@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 709C99F358 for ; Wed, 29 Jul 2015 10:13:35 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8E5F1207AE for ; Wed, 29 Jul 2015 10:13:34 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A9B9C207A9 for ; Wed, 29 Jul 2015 10:13:33 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZKOKp-0001wb-Qu; Wed, 29 Jul 2015 10:11:39 +0000 Received: from mail-pa0-f51.google.com ([209.85.220.51]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZKOJk-00010L-LN for linux-arm-kernel@lists.infradead.org; Wed, 29 Jul 2015 10:10:34 +0000 Received: by pacan13 with SMTP id an13so3462959pac.1 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=BSvzIm9jtPQ3ILADfi0Sf3Ijxp62iHOJpX1pLt2eSSqPK0zsxc5Cwcvt0aZpU5fBG1 OeMkn1PZZiODjPKvQCW1lmomZz6pnBI6/TVS/D4A4r007+oqEIriDdGZfCTJHYayYaiM Or8yBTdtPgXSNqv+JCl6+aImtMwDDK+dQ0MBg02mQWqrTG77+8QI0dPs73HflUpNKu+l 1gHmUJFtFKvwHDRP2dPEGIgRvyo2Yl6dqwHsusOcwRb0FNcBX/4BHhOsQXFWHTmc/ZVF pla9bzZi3m8U8m7gOzQFpo8lmNlVM0NeGxkPI/MiHtSe1+k+qkwun7ctRTQsN7cqhTeX 8ozg== X-Gm-Message-State: ALoCoQnF4diZOcXiyRAZqM/neCUAI7J8zmYQwX0LHGYPaUbE346Dxs+lGvxZvr1KcmRATZ624KAg 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" 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150729_031032_947495_1DDBE334 X-CRM114-Status: GOOD ( 12.77 ) X-Spam-Score: -2.6 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Wei Huang , Lorenzo Pieralisi , linux-acpi@vger.kernel.org, Timur Tabi , linaro-acpi@lists.linaro.org, linux-kernel@vger.kernel.org, Tomasz Nowicki , Grant Likely , Mark Brown , Hanjun Guo , Suravee Suthikulpanit , Bjorn Helgaas , Thomas Gleixner , Jiang Liu , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-5.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable 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;