[Skiboot] [PATCH v2 2/8] core/pci: Introduce a new pci_slot_op named completed_sm_run()

christophe lombard clombard at linux.vnet.ibm.com
Tue Dec 11 00:40:59 AEDT 2018


Le 09/12/2018 à 15:17, Vaibhav Jain a écrit :
> At times we need to perform some cleanup activities when the Opal PCI
> state machine that perform creset/freset/hreset (driven by
> pci_slot_ops->run_sm which) of a slot completes. One example can be to
> mark CAPP attached to a PHB, as deactivated when creset/freset of a
> CAPI card slot is completed.
> 
> However the calls to pci_slot_ops->run_sm() is scattered through out
> the code and patching each call site to check for the return value and
> perform custom cleanup tacks is difficult.
> 
> Hence this patch introduces a new pci_slot_ops named
> completed_sm_run() which should be called when pci_slot_ops->run_sm()
> determines that the reset state machine is complete. This provides a
> more centralized way to handle slot related cleanup activities.
> 
> Signed-off-by: Vaibhav Jain <vaibhav at linux.ibm.com>
> ---
> Change-log
> 

Reviewed-by: Christophe Lombard <clombard at linux.vnet.ibm.com>



More information about the Skiboot mailing list