linux/arch/sh/drivers/pci
Lorenzo Pieralisi 20d693225a sh/PCI: Replace pci_fixup_irqs() call with host bridge IRQ mapping hooks
The pci_fixup_irqs() function allocates IRQs for all PCI devices present in
a system; those PCI devices possibly belong to different PCI bus trees (and
possibly rooted at different host bridges) and may well be enabled (ie
probed and bound to a driver) by the time pci_fixup_irqs() is called when
probing a given host bridge driver.

Furthermore, current kernel code relying on pci_fixup_irqs() to assign
legacy PCI IRQs to devices does not work at all for hotplugged devices in
that the code carrying out the IRQ fixup is called at host bridge driver
probe time, which just cannot take into account devices hotplugged after
the system has booted.

The introduction of map/swizzle function hooks in struct pci_host_bridge
allows us to define per-bridge map/swizzle functions that can be used at
device probe time in PCI core code to allocate IRQs for a given device
(through pci_assign_irq()).

Convert PCI host bridge initialization code to the
pci_scan_root_bus_bridge() API (that allows to pass a struct
pci_host_bridge with initialized map/swizzle pointers) and remove the
pci_fixup_irqs() call from arch code.

Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Cc: Rich Felker <dalias@libc.org>
Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
2017-08-03 16:24:04 -05:00
..
common.c sh: Fix up early PCI PERR/SERR IRQ handling. 2010-02-03 16:46:20 +09:00
fixups-cayman.c sh/PCI: Remove __init optimisations from IRQ mapping functions/data 2017-08-03 16:21:31 -05:00
fixups-dreamcast.c sh/PCI: Remove __init optimisations from IRQ mapping functions/data 2017-08-03 16:21:31 -05:00
fixups-landisk.c sh: legacy PCI evt2irq migration. 2012-05-18 17:42:29 +09:00
fixups-r7780rp.c sh/PCI: Remove __init optimisations from IRQ mapping functions/data 2017-08-03 16:21:31 -05:00
fixups-rts7751r2d.c sh/PCI: Remove __init optimisations from IRQ mapping functions/data 2017-08-03 16:21:31 -05:00
fixups-sdk7780.c sh/PCI: Remove __init optimisations from IRQ mapping functions/data 2017-08-03 16:21:31 -05:00
fixups-sdk7786.c sh/PCI: adjust section annotations for pcibios_setup() 2012-07-05 15:09:13 -06:00
fixups-se7751.c sh/PCI: Remove __init optimisations from IRQ mapping functions/data 2017-08-03 16:21:31 -05:00
fixups-sh03.c sh/PCI: Remove __init optimisations from IRQ mapping functions/data 2017-08-03 16:21:31 -05:00
fixups-snapgear.c sh/PCI: Remove __init optimisations from IRQ mapping functions/data 2017-08-03 16:21:31 -05:00
fixups-titan.c sh/PCI: Remove __init optimisations from IRQ mapping functions/data 2017-08-03 16:21:31 -05:00
Makefile sh: pci: Support slot 4 routing on SDK7786. 2010-10-14 07:37:01 +09:00
ops-dreamcast.c sh: pci: remove duplicated #include's 2009-06-14 17:48:43 +09:00
ops-sh4.c sh: pci: Use a generic raw spinlock for PCI config access locking. 2010-09-20 18:56:13 +09:00
ops-sh5.c PCI: Remove unnecessary #includes of <asm/pci.h> 2015-06-08 07:56:09 -05:00
ops-sh7786.c sh: pci: Use a generic raw spinlock for PCI config access locking. 2010-09-20 18:56:13 +09:00
pci-dreamcast.c sh: Improved multi-resource handling for SH7780 PCI. 2010-02-01 20:01:50 +09:00
pci-sh4.h PCI: Remove unused "pci_probe" flags 2015-07-27 17:09:40 -05:00
pci-sh5.c PCI: Remove unnecessary #includes of <asm/pci.h> 2015-06-08 07:56:09 -05:00
pci-sh5.h sh: Mass ctrl_in/outX to __raw_read/writeX conversion. 2010-01-26 12:58:40 +09:00
pci-sh7751.c sh: Fix typos in PCI initialization message 2010-06-23 09:09:56 +01:00
pci-sh7751.h Fix common misspellings 2011-03-31 11:26:23 -03:00
pci-sh7780.c SH: pci-sh7780: enable big-endian operation. 2012-03-28 14:28:30 +09:00
pci-sh7780.h sh: pci: Move Renesas PCI IDs to a better place. 2010-09-20 15:37:25 +09:00
pci.c sh/PCI: Replace pci_fixup_irqs() call with host bridge IRQ mapping hooks 2017-08-03 16:24:04 -05:00
pcie-sh7786.c sh/PCI: Remove __init optimisations from IRQ mapping functions/data 2017-08-03 16:21:31 -05:00
pcie-sh7786.h arch/sh/drivers/pci/pcie-sh7786.h: remove duplicate SH4A_PCIEPHYCTLR 2014-04-03 16:20:53 -07:00