wspoon: Activate fan control events at poweron

Utilize the pgood property as a precondition to loading fan control
events based on property states other than the OCC active events. Since
the OCCs are not active when powered off (pgood = 0) those events having
OCCs active as a precondition are not necessary to be added.

This is the first step to enabling fan control to run at BMC standby.
When the default phosphor-fan-control@.service starts after power on,
the pgood property value is already set to 1. Therefore this produces no
change in fan control activity.

Tested:
    No change in fan speed control

Change-Id: I66c9acb047c9840b6d47e08766417e48bed667f8
Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
1 file changed