History log of /openbmc/phosphor-power/power-supply/main.cpp (Results 1 – 17 of 17)
Revision Date Author Comments
# f5402197 16-Aug-2024 Patrick Williams <patrick@stwcx.xyz>

clang-format: re-format for clang-18

clang-format-18 isn't compatible with the clang-format-17 output, so we
need to reformat the code with the latest version. The way clang-18
handles lambda forma

clang-format: re-format for clang-18

clang-format-18 isn't compatible with the clang-format-17 output, so we
need to reformat the code with the latest version. The way clang-18
handles lambda formatting also changed, so we have made changes to the
organization default style format to better handle lambda formatting.

See I5e08687e696dd240402a2780158664b7113def0e for updated style.
See Iea0776aaa7edd483fa395e23de25ebf5a6288f71 for clang-18 enablement.

Change-Id: I7b90380845efee6bf6a1fe342a793d71aa9ff181
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>

show more ...


# b60823fa 14-Aug-2023 George Liu <liuxiwei@inspur.com>

power-supply: Replace Argument class with CLI11

Phosphor-power already depends on cli11, delete Argument class and
use cli11 instead.

Signed-off-by: George Liu <liuxiwei@inspur.com>
Change-Id: I4ca

power-supply: Replace Argument class with CLI11

Phosphor-power already depends on cli11, delete Argument class and
use cli11 instead.

Signed-off-by: George Liu <liuxiwei@inspur.com>
Change-Id: I4caebf3f9fcb432fd1a80535b9b067aab66b1b71

show more ...


# 48781aef 10-May-2023 Patrick Williams <patrick@stwcx.xyz>

clang-format: copy latest and re-format

clang-format-16 has some backwards incompatible changes that require
additional settings for best compatibility and re-running the formatter.
Copy the latest

clang-format: copy latest and re-format

clang-format-16 has some backwards incompatible changes that require
additional settings for best compatibility and re-running the formatter.
Copy the latest .clang-format from the docs repository and reformat the
repository.

Change-Id: If66f68c96df4baf8dc07abf8729a3cb7657e932d
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>

show more ...


# 7354ce62 22-Jul-2022 Patrick Williams <patrick@stwcx.xyz>

sdbusplus: use shorter type aliases

The sdbusplus headers provide shortened aliases for many types.
Switch to using them to provide better code clarity and shorter
lines. Possible replacements are

sdbusplus: use shorter type aliases

The sdbusplus headers provide shortened aliases for many types.
Switch to using them to provide better code clarity and shorter
lines. Possible replacements are for:
* bus_t
* exception_t
* manager_t
* match_t
* message_t
* object_t
* slot_t

Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: Ief05bd757cffb1453e058a719ee4b060861752e7

show more ...


# d1bc4cec 13-Dec-2019 Brandon Wyman <bjwyman@gmail.com>

Update .clang-format to latest version from docs

Signed-off-by: Brandon Wyman <bjwyman@gmail.com>
Change-Id: Ie6e7f43e7554429704dca86b21320c90aed18791


# ab093328 09-Oct-2019 Lei YU <mine260309@gmail.com>

Refactor: rename namespace witherspoon to phosphor

This repo now becomes phosphor-power, rename namespace witherspoon to
phosphor to make it generic.

Signed-off-by: Lei YU <mine260309@gmail.com>
Ch

Refactor: rename namespace witherspoon to phosphor

This repo now becomes phosphor-power, rename namespace witherspoon to
phosphor to make it generic.

Signed-off-by: Lei YU <mine260309@gmail.com>
Change-Id: Icb9f8a7c33065add99f2bf42ed55745a28fa0424

show more ...


# f0f02b9a 25-Oct-2018 Matt Spinler <spinler@us.ibm.com>

Start using .clang-format

Used the one from docs/style/cpp.

Change-Id: I3bdc2b353bf18a437266b362d8205b8463a9ce2b
Signed-off-by: Matt Spinler <spinler@us.ibm.com>


# e5a8b473 18-Oct-2018 William A. Kennington III <wak@google.com>

event: Remove in favor of sdeventplus

Use the new library provided to all openbmc projects instead of rolling
our own managed pointer.

Tested: Compiled

Change-Id: I4993d4340e0e0aa5898e73ef815baa81

event: Remove in favor of sdeventplus

Use the new library provided to all openbmc projects instead of rolling
our own managed pointer.

Tested: Compiled

Change-Id: I4993d4340e0e0aa5898e73ef815baa81b0e8a2bc
Signed-off-by: William A. Kennington III <wak@google.com>

show more ...


# c87eb826 18-Jan-2018 Matt Spinler <spinler@us.ibm.com>

Add input history collection support to main()

Will call enableHistory() on the PowerSupply instance
to start collection, and also start the D-Bus server
to host the objects that hold the history.

Add input history collection support to main()

Will call enableHistory() on the PowerSupply instance
to start collection, and also start the D-Bus server
to host the objects that hold the history.

Change-Id: If3d95bae1ce4a773bcdba10496d904ecc32c9102
Signed-off-by: Matt Spinler <spinler@us.ibm.com>

show more ...


# b08efa4f 16-Nov-2017 Brandon Wyman <bjwyman@gmail.com>

Increase the power on delay timer to 5 seconds

The current level of ship-level Witherspoon power supplies are not
always asserting the POWER_GOOD bit in the STATUS_WORD within the
expected 2 second

Increase the power on delay timer to 5 seconds

The current level of ship-level Witherspoon power supplies are not
always asserting the POWER_GOOD bit in the STATUS_WORD within the
expected 2 second window. Increasing the power on delay timer from 2
seconds to 5 seconds.

Change-Id: I980fefcd67c092b694ef482f89928f2bd9f82857
Signed-off-by: Brandon Wyman <bjwyman@gmail.com>

show more ...


# 590fc28a 01-Nov-2017 Brandon Wyman <bjwyman@gmail.com>

Add in a delay before setting present to true

When a power supply is inserted, allow for a time delay before starting
the fault checks. This will give the individual servicing a power supply
some ti

Add in a delay before setting present to true

When a power supply is inserted, allow for a time delay before starting
the fault checks. This will give the individual servicing a power supply
some time to insert the supply and then apply power.

Change-Id: Ic957be927cea26a6c011a0a634f84093e040b454
Signed-off-by: Brandon Wyman <bjwyman@gmail.com>

show more ...


# 1dd3c9ae 10-Oct-2017 Brandon Wyman <bjwyman@gmail.com>

Update the delay from state=1 to powerOn=true

Increasing the power on delay timer from 1 second to 2 seconds, rounding
up from the 1250ms that should be the max from BMC_POWER_UP to DC_GOOD.

Resolv

Update the delay from state=1 to powerOn=true

Increasing the power on delay timer from 1 second to 2 seconds, rounding
up from the 1250ms that should be the max from BMC_POWER_UP to DC_GOOD.

Resolves: openbmc/openbmc#2439

Change-Id: I90f363d31514c38efec8b3594ba705aea7ccb2bc
Signed-off-by: Brandon Wyman <bjwyman@gmail.com>

show more ...


# 431fbe43 18-Aug-2017 Brandon Wyman <bjwyman@gmail.com>

Add support for tracking system power state

Change-Id: Ie0f27f696082ff3ee60c955992f3c2e55f4b5e57
Signed-off-by: Brandon Wyman <bjwyman@gmail.com>


# 10295547 09-Aug-2017 Brandon Wyman <bjwyman@gmail.com>

Add STATUS_WORD to metadata for VIN_UV_FAULT

Change-Id: Iaa6001f7c5d0c558ad3bc01e209dc316236fea93
Signed-off-by: Brandon Wyman <bjwyman@gmail.com>


# 442035f0 08-Aug-2017 Brandon Wyman <bjwyman@gmail.com>

Update analyze to check VIN_UV_FAULT

The function is a pure virtual function in DeviceMonitor, add in the
implementation of that for PowerSupply. Read the file that represents
that bit from the STAT

Update analyze to check VIN_UV_FAULT

The function is a pure virtual function in DeviceMonitor, add in the
implementation of that for PowerSupply. Read the file that represents
that bit from the STATUS_WORD. If fault is on, report a fault.

Change-Id: I05a4bff997bb0c8b8b71db444e9db0e506765689
Signed-off-by: Brandon Wyman <bjwyman@gmail.com>

show more ...


# 1db9a9e2 26-Jul-2017 Brandon Wyman <bjwyman@gmail.com>

Update PowerSupply to be derived from Device

The PowerSupply will pass a name and instance number down to the Device
class it is derived from, but will also have an inventory path and a
path to moni

Update PowerSupply to be derived from Device

The PowerSupply will pass a name and instance number down to the Device
class it is derived from, but will also have an inventory path and a
path to monitor for PMBus interfaces.

Change-Id: I29f875fda1f07d031b58ec7ffd381d655495f248
Signed-off-by: Brandon Wyman <bjwyman@gmail.com>

show more ...


# 24e422fe 25-Jul-2017 Brandon Wyman <bjwyman@gmail.com>

Update build framework for PowerSupply fault app

Change-Id: I98a75efc88d92de0ab016a77d5dd4a1e9345df83
Signed-off-by: Brandon Wyman <bjwyman@gmail.com>