• Thomas Petazzoni's avatar
    arch/sh: pci: don't use disabled resources · 3aeb93a0
    Thomas Petazzoni authored
    In pcibios_scanbus(), we provide to the PCI core the usable MEM and IO
    regions using pci_add_resource_offset(). We travel through all
    resources available in the "struct pci_channel".
    
    Also, in register_pci_controller(), we travel through all resources to
    request them, making sure they don't conflict with already requested
    resources.
    
    However, some resources may be disabled, in which case they should not
    be requested nor provided to the PCI core.
    
    In the current situation, none of the resources are disabled. However,
    follow-up patches in this series will make some resources disabled,
    making this preliminary change necessary.
    Signed-off-by: default avatarThomas Petazzoni <thomas.petazzoni@free-electrons.com>
    Signed-off-by: default avatarRich Felker <dalias@libc.org>
    3aeb93a0
pci.c 6.95 KB