• Lorenzo Pieralisi's avatar
    PCI: rockchip: Move to struct pci_host_bridge IRQ mapping functions · 5a3dc3c1
    Lorenzo Pieralisi authored
    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: default avatarLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
    Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
    Cc: Wenrui Li <wenrui.li@rock-chips.com>
    Cc: Shawn Lin <shawn.lin@rock-chips.com>
    5a3dc3c1
pcie-rockchip.c 42.4 KB