s390/pci: recognize name clashes with uids
authorSebastian Ott <sebott@linux.vnet.ibm.com>
Wed, 21 Jun 2017 08:20:35 +0000 (10:20 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 28 Jun 2017 05:32:14 +0000 (07:32 +0200)
commit312e8462ab6a1594a0bc4bc51c8e36c9f07b447b
tree591639ef1cb29b642d80c3b5c17de0816a55846e
parentbe2c36769f6340322c5367586adad6c3ce1ed51a
s390/pci: recognize name clashes with uids

When uid checking is enabled firmware guarantees uniqueness of the uids
and we use them for device enumeration. Tests have shown that uid checking
can be toggled at runtime. This is unfortunate since it can lead to name
clashes.

Recognize these name clashes by allocating bits in zpci_domain even for
firmware provided ids.

Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Reviewed-by: Pierre Morel <pmorel@linux.vnet.ibm.com>
Reviewed-by: Gerald Schaefer <gerald.schaefer@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/pci/pci.c