Skip to content
Snippets Groups Projects
Forked from Reform / reform-boundary-uboot
Source project has a limited visibility.
  • Simon Glass's avatar
    9526d83a
    dm: pci: Support decoding ranges with duplicate entries · 9526d83a
    Simon Glass authored
    
    At present we add a new resource entry for every range entry. But some range
    entries refer to configuration regions. To make this work, avoid adding two
    regions of the same type. The later ranges will overwrite the earlier
    (configuration) ones.
    
    There does not seem to be a way to distinguish the configuration ranges
    other than by ordering (as per the device tree binding).
    
    We could perhaps instead just store one region of each type in a simple
    array. Once we are sure that we don't need to support multiple regions, we
    could change this. It would be easier to do it when all drivers are
    converted to use driver model for PCI.
    
    Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
    Tested-by: default avatarStephen Warren <swarren@nvidia.com>
    9526d83a
    History
    dm: pci: Support decoding ranges with duplicate entries
    Simon Glass authored
    
    At present we add a new resource entry for every range entry. But some range
    entries refer to configuration regions. To make this work, avoid adding two
    regions of the same type. The later ranges will overwrite the earlier
    (configuration) ones.
    
    There does not seem to be a way to distinguish the configuration ranges
    other than by ordering (as per the device tree binding).
    
    We could perhaps instead just store one region of each type in a simple
    array. Once we are sure that we don't need to support multiple regions, we
    could change this. It would be easier to do it when all drivers are
    converted to use driver model for PCI.
    
    Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
    Tested-by: default avatarStephen Warren <swarren@nvidia.com>