linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Dongdong Liu <liudongdong3@huawei.com>
To: <helgaas@kernel.org>
Cc: <linux-pci@vger.kernel.org>, <wangzhou1@hisilicon.com>,
	<gabriele.paoloni@huawei.com>, <charles.chenxin@huawei.com>,
	<linuxarm@huawei.com>, Dongdong Liu <liudongdong3@huawei.com>
Subject: [PATCH 3/3] PCI: generic: Fix the bug of pci_fixup_irqs() for arm64 platform.
Date: Thu, 12 Jan 2017 14:28:24 +0800	[thread overview]
Message-ID: <1484202504-96686-4-git-send-email-liudongdong3@huawei.com> (raw)
In-Reply-To: <1484202504-96686-1-git-send-email-liudongdong3@huawei.com>

arch/arm64/pci.c pcibios_alloc_irq() has the same function as
pci_fixup_irqs(), so we add condition #ifndef CONFIG_ARM64 for
pci_fixup_irqs().

Signed-off-by: Dongdong Liu <liudongdong3@huawei.com>
Reviewed-by: Gabriele Paoloni <gabriele.paoloni@huawei.com>
Reviewed-by: Zhou Wang <wangzhou1@hisilicon.com>
---
 drivers/pci/host/pci-host-common.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/pci/host/pci-host-common.c b/drivers/pci/host/pci-host-common.c
index e3c48b5..f160afc 100644
--- a/drivers/pci/host/pci-host-common.c
+++ b/drivers/pci/host/pci-host-common.c
@@ -145,7 +145,9 @@ int pci_host_common_probe(struct platform_device *pdev,
 		return -ENODEV;
 	}
 
+#ifndef CONFIG_ARM64
 	pci_fixup_irqs(pci_common_swizzle, of_irq_parse_and_map_pci);
+#endif
 
 	/*
 	 * We insert PCI resources into the iomem_resource and
-- 
1.9.1

  parent reply	other threads:[~2017-01-12  6:28 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-12  6:28 [PATCH 0/3] PCI:hisi: Add DT almost ECAM support for HiSilicon Hip06/Hip07 host controllers Dongdong Liu
2017-01-12  6:28 ` [PATCH 1/3] " Dongdong Liu
2017-02-03 20:40   ` Bjorn Helgaas
2017-02-03 21:00     ` Bjorn Helgaas
2017-02-04  3:30       ` Dongdong Liu
2017-01-12  6:28 ` [PATCH 2/3] PCI: Set pdev->no_msi=1 " Dongdong Liu
2017-02-03 20:42   ` Bjorn Helgaas
2017-02-04  3:37     ` Dongdong Liu
2017-02-05  0:38       ` Bjorn Helgaas
2017-02-06  0:38         ` Dongdong Liu
2017-01-12  6:28 ` Dongdong Liu [this message]
2017-02-03 20:45   ` [PATCH 3/3] PCI: generic: Fix the bug of pci_fixup_irqs() for arm64 platform Bjorn Helgaas
2017-02-06 14:08     ` Lorenzo Pieralisi
2017-02-07 21:46       ` Bjorn Helgaas
2017-02-08  9:58         ` Lorenzo Pieralisi
2017-01-23 10:29 ` [PATCH 0/3] PCI:hisi: Add DT almost ECAM support for HiSilicon Hip06/Hip07 host controllers Dongdong Liu
2017-02-03 21:04 ` Bjorn Helgaas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1484202504-96686-4-git-send-email-liudongdong3@huawei.com \
    --to=liudongdong3@huawei.com \
    --cc=charles.chenxin@huawei.com \
    --cc=gabriele.paoloni@huawei.com \
    --cc=helgaas@kernel.org \
    --cc=linux-pci@vger.kernel.org \
    --cc=linuxarm@huawei.com \
    --cc=wangzhou1@hisilicon.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).