diff options
author | Michael Neuling <mikey@neuling.org> | 2017-05-29 17:35:04 +1000 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2017-05-31 17:00:31 +1000 |
commit | 9abb449b9c572e98002a8a500afcc3958d829297 (patch) | |
tree | e662ae1e419a9eee5e8af27ae5bd18c39a52c75f /hw/phb3.c | |
parent | 1c705700ab3c370e8062516c842469f3f7857f2a (diff) | |
download | skiboot-9abb449b9c572e98002a8a500afcc3958d829297.zip skiboot-9abb449b9c572e98002a8a500afcc3958d829297.tar.gz skiboot-9abb449b9c572e98002a8a500afcc3958d829297.tar.bz2 |
core/pci: Rename pci_slot_op poll to run_sm
This renames the "poll" op to "run_sm" (short for run state machine).
I think this is a better name since the function does a bunch of
things like reseting the slot. Also it avoids confusion with the
"poll_link" op which does something different (and can even be called
from run_sm).
No functional change.
Signed-off-by: Michael Neuling <mikey@neuling.org>
Acked-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hw/phb3.c')
-rw-r--r-- | hw/phb3.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -2244,7 +2244,7 @@ static int64_t phb3_retry_state(struct pci_slot *slot) slot->delay_tgt_tb = 0; pci_slot_set_state(slot, slot->retry_state); slot->retry_state = PCI_SLOT_STATE_NORMAL; - return slot->ops.poll(slot); + return slot->ops.run_sm(slot); } static int64_t phb3_poll_link(struct pci_slot *slot) @@ -4680,7 +4680,7 @@ static bool phb3_host_sync_reset(void *data) phb3_creset(slot); return false; default: - rc = slot->ops.poll(slot); + rc = slot->ops.run_sm(slot); return rc <= OPAL_SUCCESS; } } |