]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
ARM: footbridge: fix PCI interrupt mapping
authorRussell King <rmk+kernel@armlinux.org.uk>
Thu, 25 Mar 2021 10:26:21 +0000 (10:26 +0000)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 7 May 2021 07:54:03 +0000 (09:54 +0200)
commit050bfe2b27e81872dfb23d46623c10f1abcbaa69
tree15c81b1e830207001470cb5712e1911c68752932
parent1bfc70ae6623b03223705b05b68301d86fb7e1ae
ARM: footbridge: fix PCI interrupt mapping

BugLink: https://bugs.launchpad.net/bugs/1926999
[ Upstream commit 30e3b4f256b4e366a61658c294f6a21b8626dda7 ]

Since commit 30fdfb929e82 ("PCI: Add a call to pci_assign_irq() in
pci_device_probe()"), the PCI code will call the IRQ mapping function
whenever a PCI driver is probed. If these are marked as __init, this
causes an oops if a PCI driver is loaded or bound after the kernel has
initialised.

Fixes: 30fdfb929e82 ("PCI: Add a call to pci_assign_irq() in pci_device_probe()")
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
arch/arm/mach-footbridge/cats-pci.c
arch/arm/mach-footbridge/ebsa285-pci.c
arch/arm/mach-footbridge/netwinder-pci.c
arch/arm/mach-footbridge/personal-pci.c