]> Git Repo - linux.git/commitdiff
PCI: rockchip: Move to struct pci_host_bridge IRQ mapping functions
authorLorenzo Pieralisi <[email protected]>
Wed, 28 Jun 2017 20:14:11 +0000 (15:14 -0500)
committerBjorn Helgaas <[email protected]>
Sun, 2 Jul 2017 21:51:19 +0000 (16:51 -0500)
struct pci_host_bridge gained hooks to map/swizzle IRQs, so that the IRQ
mapping can be done automatically by PCI core code through the
pci_assign_irq() function instead of resorting to arch-specific
implementation callbacks to carry out the same task which force PCI host
bridge drivers implementation to implement per-arch kludges to carry out a
task that is inherently architecture agnostic.

Add map/swizzle IRQs hooks to the rockchip PCI host driver to move the IRQ
allocation into core code and stop relying on arch-specific callbacks.

Signed-off-by: Lorenzo Pieralisi <[email protected]>
Signed-off-by: Bjorn Helgaas <[email protected]>
Cc: Wenrui Li <[email protected]>
Cc: Shawn Lin <[email protected]>
drivers/pci/host/pcie-rockchip.c

index cae5a6dec8b0080936468ad092920b0e3ffb794b..29332ba06bc1b4d3deb77a24138b9a5a652c7533 100644 (file)
@@ -1404,6 +1404,8 @@ static int rockchip_pcie_probe(struct platform_device *pdev)
        bridge->sysdata = rockchip;
        bridge->busnr = 0;
        bridge->ops = &rockchip_pcie_ops;
+       bridge->map_irq = of_irq_parse_and_map_pci;
+       bridge->swizzle_irq = pci_common_swizzle;
 
        err = pci_scan_root_bus_bridge(bridge);
        if (!err)
This page took 0.054818 seconds and 4 git commands to generate.