Fix wrong reset pin setting

When power on or power off host, the way to set reset pins based on pin
polarity is not correct. This makes PCIE devices not working properly.

This patch fixed bug introduced by commit:
https://github.com/openbmc/skeleton/commit/3ab5436
and https://github.com/openbmc/skeleton/commit/0475f65

The relationship between expected reset pin state and pgood state looks like:

pgood polarilty reset_pin(expected)
1     0         1
0     0         0
1     1         0
0     1         1

Related with openbmc/openbmc#876

Change-Id: Id0b36c15ed645c29f3ccc2aa507e50b31a718bb9
Signed-off-by: Yi Li <adamliyi@msn.com>
1 file changed