[Skiboot] [RFC PATCH 07/23] core/pci-slot: add power_ctl_state
Oliver O'Halloran
oohall at gmail.com
Wed Apr 3 20:09:04 AEDT 2019
Add a state variable for tracking where the set_power_state() function
is in the process of powering on the slot.
Signed-off-by: Oliver O'Halloran <oohall at gmail.com>
---
We probably want a timer, etc similar to what we have the for slot reset
state machine.
---
include/pci-slot.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/include/pci-slot.h b/include/pci-slot.h
index fec11ccf46c2..9299ffae92e8 100644
--- a/include/pci-slot.h
+++ b/include/pci-slot.h
@@ -181,6 +181,9 @@ struct pci_slot {
uint64_t async_token;
uint8_t power_state;
+ /* used by the set_power_state() function */
+ uint8_t power_ctl_state;
+
/* Slot information */
uint8_t pluggable;
uint8_t surprise_pluggable;
--
2.20.1
More information about the Skiboot
mailing list