Remove check for 64-bit FDT ranges in pci-host-generic
This allows 32-bit platforms to use pci-host-generic. Obtained from: Semihalf Submitted by: Michal Stanek <mst@semihalf.com> Sponsored by: Annapurna Labs Reviewed by: wma Differential Revision: https://reviews.freebsd.org/D7560
This commit is contained in:
parent
3fc36ee018
commit
d8f1c69cc2
@ -281,7 +281,7 @@ parse_pci_mem_ranges(struct generic_pcie_softc *sc)
|
||||
OF_getencprop(OF_parent(node), "#address-cells", &parent_addr_cells,
|
||||
sizeof(parent_addr_cells));
|
||||
|
||||
if (parent_addr_cells != 2 || pci_addr_cells != 3 || size_cells != 2) {
|
||||
if (parent_addr_cells > 2 || pci_addr_cells != 3 || size_cells > 2) {
|
||||
device_printf(sc->dev,
|
||||
"Unexpected number of address or size cells in FDT\n");
|
||||
return (ENXIO);
|
||||
|
Loading…
Reference in New Issue
Block a user