some code in power_control_obj.c

Lemon Zhang lemon_zhang555 at 163.com
Tue May 19 00:35:01 AEST 2020


hello,
1 In the file power_control_obj.c, there is the following program code
```
if (pgood_state == 0)
             {
                 control_power_emit_power_lost (control_power);
                 g_pci_reset_held = 1;
             }
             else
             {
                 control_power_emit_power_good (control_power);
             }
}
```
Is this the code that notifies the hardware power status? If yes, to whom did it notify; if not, what is it used for?
2 In function 
```
static gboolean on_set_power_state (ControlPower * pwr,
         GDBusMethodInvocation * invocation,
         guint state,
         gpointer user_data)
```
No matter whether I set the power-on command or the power-off command, the parameter state is always 0. Is there any problem here?
Regards,
Garnet



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20200518/eac4c7cb/attachment.htm>


More information about the openbmc mailing list