powerpc/powernv: Check PHB type in advance
commit1665c4a892983ae5c0efa6ef88c00266e3537717
authorGavin Shan <gwshan@linux.vnet.ibm.com>
Wed, 12 Nov 2014 02:36:04 +0000 (12 13:36 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 14 Nov 2014 06:24:22 +0000 (14 17:24 +1100)
treedf19f1e91e864ead25bb3ca3d275ad44c4d52c07
parentb30e759072c182538abb6908681cfd49978ba5e2
powerpc/powernv: Check PHB type in advance

The patch checks PHB type a bit early to save a bit cycles
for P7 because we don't support M64 for P7IOC no matter what
OPAL firmware we have.

Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/powernv/pci-ioda.c