powerpc/powernv/pci: Add helper to check if a PE has a single vendor
authorRussell Currey <ruscur@russell.cc>
Wed, 21 Jun 2017 07:18:03 +0000 (17:18 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 27 Jun 2017 02:14:28 +0000 (12:14 +1000)
commita0f98629f19943fb8387a7d5fd01e60178223c00
treee4ff797130937f7280b473fff3662a9699a09440
parenta4b48ba9047dfdf99cf2316d21baac2791b3b14c
powerpc/powernv/pci: Add helper to check if a PE has a single vendor

Add a helper that determines if all the devices contained in a given PE
are all from the same vendor or not.  This can be useful in determining
if it's okay to make PE-wide changes that may be suitable for some
devices but not for others.

This is used later in the series.

Signed-off-by: Russell Currey <ruscur@russell.cc>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/powernv/pci-ioda.c