• David S. Miller's avatar
    sparc64: Fix disappearing PCI devices on e3500. · 7ee766d8
    David S. Miller authored
    Based upon a bug report by Meelis Roos.
    
    The OF device layer builds properties by matching bus types and
    applying 'range' properties as appropriate, up to the root.
    
    The match for "PCI" busses is looking at the 'device_type' property,
    and this does work %99 of the time.
    
    But on an E3500 system with a PCI QFE card, the DEC 21153 bridge
    sitting above the QFE network interface devices has a 'name' of "pci",
    but it completely lacks a 'device_type' property.  So we don't match
    it as a PCI bus, and subsequently we end up with no resource values at
    all for the devices sitting under that DEC bridge.
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    7ee766d8
of_device.c 18.4 KB