powerpc/powernv: Call opal_pci_poll() if needed
authorGavin Shan <gwshan@linux.vnet.ibm.com>
Fri, 24 Jun 2016 06:44:19 +0000 (16:44 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 29 Sep 2016 04:50:51 +0000 (14:50 +1000)
commitfbce44d0ed42e4653172376f4dfeaa5710f06a27
treeb0b4833f071c00038d4854d04798d538db263413
parentc762c69e106f2b41ef39981ba46bda0ae8119db5
powerpc/powernv: Call opal_pci_poll() if needed

When issuing PHB reset, OPAL API opal_pci_poll() is called to drive
the state machine in OPAL forward. However, we needn't always call
the function under some circumstances like reset deassert.

This avoids calling opal_pci_poll() when OPAL_SUCCESS is returned
from opal_pci_reset(). Except the overhead introduced by additional
one unnecessary OPAL call, I didn't run into real issue because of
this.

Reported-by: Pridhiviraj Paidipeddi <ppaiddipe@in.ibm.com>
Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/powernv/eeh-powernv.c