diff options
author | Liviu Dudau <[email protected]> | 2014-09-29 15:29:27 +0100 |
---|---|---|
committer | Bjorn Helgaas <[email protected]> | 2014-09-30 17:08:57 -0600 |
commit | 41e5c0f81d3e676d671d96a0a1fafb27abfbd9d7 (patch) | |
tree | 674d5c5bc98998014d5b454f059bb052660057d5 /net/lapb/lapb_subr.c | |
parent | 670ba0c8883b576d0aec28bd7a838358a4be1406 (diff) |
of/pci: Add pci_get_new_domain_nr() and of_get_pci_domain_nr()
Add pci_get_new_domain_nr() to allocate a new domain number and
of_get_pci_domain_nr() to retrieve the PCI domain number of a given device
from DT. Host bridge drivers or architecture-specific code can choose to
implement their PCI domain number policy using these two functions.
Using of_get_pci_domain_nr() guarantees a stable PCI domain number on every
boot provided that all host bridge controllers are assigned a number in the
device tree using "linux,pci-domain" property. Mixing use of
pci_get_new_domain_nr() and of_get_pci_domain_nr() is not recommended as it
can lead to potentially conflicting domain numbers being assigned to root
buses behind different host bridges.
Signed-off-by: Liviu Dudau <[email protected]>
Signed-off-by: Bjorn Helgaas <[email protected]>
CC: Arnd Bergmann <[email protected]>
CC: Grant Likely <[email protected]>
CC: Rob Herring <[email protected]>
CC: Catalin Marinas <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions