From patchwork Wed Dec 16 15:16:21 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomasz Nowicki X-Patchwork-Id: 7862261 X-Patchwork-Delegate: bhelgaas@google.com Return-Path: X-Original-To: patchwork-linux-pci@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 C7F609F1C2 for ; Wed, 16 Dec 2015 15:18:20 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0132E202FE for ; Wed, 16 Dec 2015 15:18:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1EA16203C0 for ; Wed, 16 Dec 2015 15:18:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965777AbbLPPSF (ORCPT ); Wed, 16 Dec 2015 10:18:05 -0500 Received: from mail-wm0-f44.google.com ([74.125.82.44]:36914 "EHLO mail-wm0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934007AbbLPPSA (ORCPT ); Wed, 16 Dec 2015 10:18:00 -0500 Received: by mail-wm0-f44.google.com with SMTP id p187so5611613wmp.0 for ; Wed, 16 Dec 2015 07:18:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=vA7oEsbRTUaoGSWYSyLe1jEh/iLv5Obm1RCSMzUQmG0=; b=w5oo5bP1WLLepJa+uHH63pOl6lPfI3VdjSwvm5txoO4Gx7m6l1A7HoXBXqlXMwDA6Z SWgld6qC6U0Rk9J8oRIQPUxozQJYEtZKahCqz3uft113+O752ddas1kZcZ6uJZmrMqCO l3HaRUW4YP8jIESqbvwRjQQeleBsiznPKbHeOduzbthhHnTOqay0Gvz40fAIN2v5j56C 1oe8u78qe+Di8oZtdX9lRehuNfGzzHH6XEdd9hniHGmUkszTtaUhhr+0J/5p6j4yfx44 QtYk3mdYzUQGjpAdFuXQZOwrjQwBmkOXgIvYRviU8u4L8VYNxAK93FRUE7C2Q1/L930P xVdw== 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=vA7oEsbRTUaoGSWYSyLe1jEh/iLv5Obm1RCSMzUQmG0=; b=Bn4bYBOnJWngmLMAXk6hyRPZ5Z9lV+FDzQDjb6DdtYvjfPa9T9sW6sqxL0d59xRDOc 0NBWwUtstcClAv7Z9EHTnnHjcmmxrq0bE51oIc1a7xS5NnykhbD58WOHMP+AVvftY1aa siGCIejb0eU+PymcbwfUqfTHMgN6SrHeI6vxdhGQjLlaS2mEvsdIFajyt5MQnuoGK2hJ 7DBz6vMOPR78BXPWEK6x2tCbjli4D00NhJO2dkjHgSK1r5lLlChC4xyV3NNGAi/UXjUA 5pJavjy8q+2AOlt01zIX09LdBRLpKTC4fH0kGxTPV1mGw9BMLVA/e9/jZNelgrLP5Bp0 vvEQ== X-Gm-Message-State: ALoCoQkNeW+AOnUJyo9utiFD/aL1wPuYaQLZWiXcCaIrs2UxAIjjm1/nFEZ/jTSUIEdfy1oHj98I3wFCxf4vCFdZUzf3cNE1Bw== X-Received: by 10.28.88.5 with SMTP id m5mr12798827wmb.54.1450279079299; Wed, 16 Dec 2015 07:17:59 -0800 (PST) Received: from tn-HP-4.semihalf.local ([80.82.22.190]) by smtp.gmail.com with ESMTPSA id z17sm6438761wjq.1.2015.12.16.07.17.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 16 Dec 2015 07:17:58 -0800 (PST) From: Tomasz Nowicki To: bhelgaas@google.com, arnd@arndb.de, will.deacon@arm.com, catalin.marinas@arm.com, rjw@rjwysocki.net, hanjun.guo@linaro.org, Lorenzo.Pieralisi@arm.com, okaya@codeaurora.org, jiang.liu@linux.intel.com, Stefano.Stabellini@eu.citrix.com Cc: robert.richter@caviumnetworks.com, mw@semihalf.com, Liviu.Dudau@arm.com, ddaney@caviumnetworks.com, tglx@linutronix.de, wangyijing@huawei.com, Suravee.Suthikulpanit@amd.com, msalter@redhat.com, linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, linaro-acpi@lists.linaro.org, jchandra@broadcom.com, jcm@redhat.com, Tomasz Nowicki Subject: [PATCH V2 11/23] arm64, pci: Remove useless boot time IRQ assignment when booting with DT. Date: Wed, 16 Dec 2015 16:16:21 +0100 Message-Id: <1450278993-12664-12-git-send-email-tn@semihalf.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1450278993-12664-1-git-send-email-tn@semihalf.com> References: <1450278993-12664-1-git-send-email-tn@semihalf.com> Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID,T_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 order to probe PCIe host controller when booting with DT, ARM64 is using drivers which defer IRQ assignment to device enable time. It means that boot time DT specific irq map initialization is always overridden, so lets remove that code. Signed-off-by: Tomasz Nowicki --- arch/arm64/kernel/pci.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/arch/arm64/kernel/pci.c b/arch/arm64/kernel/pci.c index 023b983..f7948f5 100644 --- a/arch/arm64/kernel/pci.c +++ b/arch/arm64/kernel/pci.c @@ -51,16 +51,6 @@ int pcibios_enable_device(struct pci_dev *dev, int mask) return pci_enable_resources(dev, mask); } -/* - * Try to assign the IRQ number from DT when adding a new device - */ -int pcibios_add_device(struct pci_dev *dev) -{ - dev->irq = of_irq_parse_and_map_pci(dev, 0, 0); - - return 0; -} - #ifdef CONFIG_ACPI /* Root bridge scanning */ struct pci_bus *pci_acpi_scan_root(struct acpi_pci_root *root)