• Andreas Ferber's avatar
    MIPS: Fix SSB PCIcore IO resource management · 847253b9
    Andreas Ferber authored
    The SSB PCIcore code reused the IO resource fixup code from the original
    2.4.x Broadcom patch for BCM47xx based devices, which was a quick hack
    for doing PCI IO resource configuration back then (the boot loader
    doesn't configure PCI devices on this platform).
    
    However, this code is no longer necessary since the kernel now can do
    PCI resource management fine all by itself, so remove the old code.
    
    When removing the code, it becomes obvious that the mem_offset setting
    in the PCIcore driver was wrong, however this was masked by the fixup
    code before, except in a few cases involving yenta_socket. For BCM47xx,
    the correct offset is 0, and since this is the only device using PCIcore
    in host mode, the offset can simply be removed unconditionally.
    Signed-off-by: default avatarAndreas Ferber <af@chaos-agency.de>
    Signed-off-by: default avatarMichael Buesch <mb@bu3sch.de>
    Cc: Markus Wigge <markus@cultcom.de>
    Cc: linux-mips@linux-mips.org
    Patchwork: http://patchwork.linux-mips.org/patch/1070/Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
    847253b9
driver_pcicore.c 15.5 KB