diff options
author | Zbigniew Bodek <zbb@FreeBSD.org> | 2015-09-16 23:34:51 +0000 |
---|---|---|
committer | Zbigniew Bodek <zbb@FreeBSD.org> | 2015-09-16 23:34:51 +0000 |
commit | 18c72666ce583eac1f0ad106766249648696b022 (patch) | |
tree | 2bf6705f8c0a23d33a95bffbd3241b047662100a /sys/arm/versatile/versatile_pci.c | |
parent | ae9677993397faf59a5d985d188d68dcdd79b421 (diff) | |
download | src-18c72666ce583eac1f0ad106766249648696b022.tar.gz src-18c72666ce583eac1f0ad106766249648696b022.zip |
Add domain support to PCI bus allocation
When the system has more than a single PCI domain, the bus numbers
are not unique, thus they cannot be used for "pci" device numbering.
Change bus numbers to -1 (i.e. to-be-determined automatically)
wherever the code did not care about domains.
Reviewed by: jhb
Obtained from: Semihalf
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D3406
Notes
Notes:
svn path=/head/; revision=287882
Diffstat (limited to 'sys/arm/versatile/versatile_pci.c')
-rw-r--r-- | sys/arm/versatile/versatile_pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/arm/versatile/versatile_pci.c b/sys/arm/versatile/versatile_pci.c index 10f31190cefb..f5ef6e94ec2c 100644 --- a/sys/arm/versatile/versatile_pci.c +++ b/sys/arm/versatile/versatile_pci.c @@ -266,7 +266,7 @@ versatile_pci_attach(device_t dev) versatile_pci_conf_write_4((slot << 11) + PCIR_COMMAND, val); } - device_add_child(dev, "pci", 0); + device_add_child(dev, "pci", -1); return (bus_generic_attach(dev)); } |