]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
PCI: iproc: Apply quirk_paxc_bridge() for module as well as built-in
authorWei Liu <wei.liu@kernel.org>
Wed, 11 Dec 2019 17:45:11 +0000 (17:45 +0000)
committerPaolo Pisati <paolo.pisati@canonical.com>
Mon, 24 Feb 2020 15:19:42 +0000 (16:19 +0100)
commitb6ffd843f8b6425f0611fc632ec18aa863887a86
tree23b51e4d10e1fc5a8f24ada5aa4f097d987ddabb
parent680ff6db56c3dd8b07f41b9af4564730f7a3d492
PCI: iproc: Apply quirk_paxc_bridge() for module as well as built-in

BugLink: https://bugs.launchpad.net/bugs/1864488
[ Upstream commit 574f29036fce385e28617547955dd6911d375025 ]

Previously quirk_paxc_bridge() was applied when the iproc driver was
built-in, but not when it was compiled as a module.

This happened because it was under #ifdef CONFIG_PCIE_IPROC_PLATFORM:
PCIE_IPROC_PLATFORM=y causes CONFIG_PCIE_IPROC_PLATFORM to be defined, but
PCIE_IPROC_PLATFORM=m causes CONFIG_PCIE_IPROC_PLATFORM_MODULE to be
defined.

Move quirk_paxc_bridge() to pcie-iproc.c and drop the #ifdef so the quirk
is always applied, whether iproc is built-in or a module.

[bhelgaas: commit log, move to pcie-iproc.c, not pcie-iproc-platform.c]
Link: https://lore.kernel.org/r/20191211174511.89713-1-wei.liu@kernel.org
Signed-off-by: Wei Liu <wei.liu@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
drivers/pci/controller/pcie-iproc.c
drivers/pci/quirks.c