aboutsummaryrefslogtreecommitdiff
path: root/platforms
diff options
context:
space:
mode:
authorGavin Shan <gwshan@linux.vnet.ibm.com>2017-05-24 12:30:23 +1000
committerStewart Smith <stewart@linux.vnet.ibm.com>2017-06-19 14:49:29 +1000
commitd065caf3b3101400744d4afb915edf57755a0c95 (patch)
tree942551ef104847c84d6689ea9c299e6847b12863 /platforms
parent92d7ccf00bdd6c994341feb013390c28993652bf (diff)
downloadskiboot-d065caf3b3101400744d4afb915edf57755a0c95.zip
skiboot-d065caf3b3101400744d4afb915edf57755a0c95.tar.gz
skiboot-d065caf3b3101400744d4afb915edf57755a0c95.tar.bz2
hw/phb4: Rework phb4_get_presence_state()
There are two issues in current implementation: It should return errcode visibile to Linux, which has prefix OPAL_*. The code isn't very obvious. This returns OPAL_HARDWARE when the PHB is broken. Otherwise, OPAL_SUCCESS is always returned. In the mean while, It refactors the code to make it obvious: OPAL_PCI_SLOT_PRESENT is returned when the presence signal (low active) or PCIe link is active. Otherwise, OPAL_PCI_SLOT_EMPTY is returned. Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com> Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'platforms')
0 files changed, 0 insertions, 0 deletions