#
b7ed5773 |
| 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: I3edadffec0ea11e0a52d9b060167e9a9a38f1972 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
#
2c4fbc4c |
| 26-Jun-2020 |
Patrick Williams <patrick@stwcx.xyz> |
clang-format: update to latest version Pick up latest .clang-format file from the docs repository. Fix formatting on all files. Minor compile fixes due to GCC10 and sdbusplus changes
clang-format: update to latest version Pick up latest .clang-format file from the docs repository. Fix formatting on all files. Minor compile fixes due to GCC10 and sdbusplus changes. Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Ie1f7a4e59b6cf015310effef50d558ff59731024
show more ...
|
#
9c7897ce |
| 28-Mar-2019 |
Brandon Wyman <bjwyman@gmail.com> |
Cleanup: Use filesystem instead of experimental The GCC version bump in Yocto 2.6 allows for use of std::filesystem instead of std::experimental::filesystem. Change-Id: Ibfd6c28
Cleanup: Use filesystem instead of experimental The GCC version bump in Yocto 2.6 allows for use of std::filesystem instead of std::experimental::filesystem. Change-Id: Ibfd6c285bcbd6695e5cd4e3090ffa214fc861499 Signed-off-by: Brandon Wyman <bjwyman@gmail.com>
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>
|
#
fa23e330 |
| 18-Jan-2018 |
Matt Spinler <spinler@us.ibm.com> |
Add support to read binary PMBus data PMBus::readBinary() can read a sysfs file that contains binary data and returns a vector of bytes representing that data. Change-Id: I3
Add support to read binary PMBus data PMBus::readBinary() can read a sysfs file that contains binary data and returns a vector of bytes representing that data. Change-Id: I3c729f502e155b007b9ab22a4eeefec437f150e1 Signed-off-by: Matt Spinler <spinler@us.ibm.com>
show more ...
|
#
fbae7b6c |
| 04-Jan-2018 |
Matt Spinler <spinler@us.ibm.com> |
Add readString PMBus function This function will return the data read as an std::string. Change-Id: Idd7afbd9b4c7e602fad3146d941f03366140948b Signed-off-by: Matt Spinler <sp
Add readString PMBus function This function will return the data read as an std::string. Change-Id: Idd7afbd9b4c7e602fad3146d941f03366140948b Signed-off-by: Matt Spinler <spinler@us.ibm.com>
show more ...
|
#
4dc4678e |
| 04-Jan-2018 |
Matt Spinler <spinler@us.ibm.com> |
Add PMBus device hwmon debug access type This can be used to find a file in: /sys/kernel/debug/pmbus/hwmonX/<device type> For example: /sys/kernel/debug/pmbus/hwmon3/cffps1
Add PMBus device hwmon debug access type This can be used to find a file in: /sys/kernel/debug/pmbus/hwmonX/<device type> For example: /sys/kernel/debug/pmbus/hwmon3/cffps1 Change-Id: Ifd9ae3a58f9097c89ebf80e3e19a180962968f0f Signed-off-by: Matt Spinler <spinler@us.ibm.com>
show more ...
|
#
ba05348f |
| 04-Jan-2018 |
Matt Spinler <spinler@us.ibm.com> |
Add function to get PMBus device name This will be used in the future to find a path to certain sysfs files. Change-Id: Ia919b2f954fddf7b97bd1c5025f7c54af942b318 Signed-off-
Add function to get PMBus device name This will be used in the future to find a path to certain sysfs files. Change-Id: Ia919b2f954fddf7b97bd1c5025f7c54af942b318 Signed-off-by: Matt Spinler <spinler@us.ibm.com>
show more ...
|
#
ceacf941 |
| 05-Oct-2017 |
Matt Spinler <spinler@us.ibm.com> |
Use Common.Device.Error for device failures The ReadFailure and WriteFailure errors are now available in Common.Device, and code will now use those instead of the ones in Sensor.Devi
Use Common.Device.Error for device failures The ReadFailure and WriteFailure errors are now available in Common.Device, and code will now use those instead of the ones in Sensor.Device and Control.Device, which were meant for sensor errors. Change-Id: Id15b56ab56f3ee4acee024941840a17b9f5bf9c6 Signed-off-by: Matt Spinler <spinler@us.ibm.com>
show more ...
|
#
3b7b38ba |
| 25-Sep-2017 |
Brandon Wyman <bjwyman@gmail.com> |
Add helper function to see if PMBus file exists Due to some odd power supply behavior on some systems, certain PMBus files in sysfs end up missing. Adding in a helper function to avoid
Add helper function to see if PMBus file exists Due to some odd power supply behavior on some systems, certain PMBus files in sysfs end up missing. Adding in a helper function to avoid spurious tracing if an application so chooses to check for existence before trying to read one of those files. See openbmc/openbmc#2364 issue opened for this problem with the missing files. Change-Id: Ib295beb7ff1733da6ecbcd6966b76b918ade7f54 Signed-off-by: Brandon Wyman <bjwyman@gmail.com>
show more ...
|
#
aad73e92 |
| 16-Aug-2017 |
Brandon Wyman <bjwyman@gmail.com> |
Add check for hwmon directory existence For the power supplies, if a power supply is not present, the hwmon subdirectory will not exist. Add in a check for directory existence to avo
Add check for hwmon directory existence For the power supplies, if a power supply is not present, the hwmon subdirectory will not exist. Add in a check for directory existence to avoid a termination. Change-Id: I6e19e381602c2ef619c1e27f5ceacbf92c300cee Signed-off-by: Brandon Wyman <bjwyman@gmail.com>
show more ...
|
#
8f0d953f |
| 21-Aug-2017 |
Matt Spinler <spinler@us.ibm.com> |
Add device debug path to PMBus class Some devices may also have files in /sys/kernel/debug/<device driver name>.<instance>, so adding a DeviceDebug path type to support that.
Add device debug path to PMBus class Some devices may also have files in /sys/kernel/debug/<device driver name>.<instance>, so adding a DeviceDebug path type to support that. The device driver name and chip instance number are then required to be passed in to the constructor. Change-Id: I301d730a29ac7c2c39198e4eb7125aff70d727dc Signed-off-by: Matt Spinler <spinler@us.ibm.com>
show more ...
|
#
f855e82a |
| 08-Aug-2017 |
Brandon Wyman <bjwyman@gmail.com> |
Add read() function to PMBus Adding a read() function to PMBus to read one or more bytes of data. A number of errors will require data from the 2 byte STATUS_WORD command, 1 byte fro
Add read() function to PMBus Adding a read() function to PMBus to read one or more bytes of data. A number of errors will require data from the 2 byte STATUS_WORD command, 1 byte from STATUS_INPUT and various other commands, along with later functions that will require even more bytes of data. Change-Id: I0433b36254565a124229a5bb884fbebd6ec536fc Signed-off-by: Brandon Wyman <bjwyman@gmail.com>
show more ...
|
#
ff5f339c |
| 11-Aug-2017 |
Brandon Wyman <bjwyman@gmail.com> |
Add handling of /sys/kernel/debug/pmbus path The STATUS_WORD, STATUS_INPUT, and other status command data will reside under the /sys/kernel/debug/pmbus path. Update PMBus class to handle
Add handling of /sys/kernel/debug/pmbus path The STATUS_WORD, STATUS_INPUT, and other status command data will reside under the /sys/kernel/debug/pmbus path. Update PMBus class to handle that path type. Change-Id: I07c91b8c35cf1b6478068417eadd7820620fae42 Signed-off-by: Brandon Wyman <bjwyman@gmail.com>
show more ...
|
#
57868bc5 |
| 03-Aug-2017 |
Matt Spinler <spinler@us.ibm.com> |
Add hwmon support to PMBus class Add support to allow the class to handle accessing hwmon files even though the device path passed to the constructor wasn't a hwmon path. Th
Add hwmon support to PMBus class Add support to allow the class to handle accessing hwmon files even though the device path passed to the constructor wasn't a hwmon path. This is useful because the users of this class have to access files in both locations. For example: PMBus p(basePath); p.write("myfile", 1, Type::Base) -> writes to basePath/myfile p.write("myfile", 1, Type::Hwmon) -> writes to basePath/hwmon/hwmonN/myfile where hwmonN is the hwmon dir for the device Change-Id: Ic66835dace2a9958310c9f4ee8cbcaae3669dd0f Signed-off-by: Matt Spinler <spinler@us.ibm.com>
show more ...
|
#
015e3ade |
| 01-Aug-2017 |
Matt Spinler <spinler@us.ibm.com> |
Add PMBus class This class provides the interfaces to read PMBus devices via sysfs files. This commit provides 3 interfaces: 1) Write an integer (to provide: echo 1 > clear
Add PMBus class This class provides the interfaces to read PMBus devices via sysfs files. This commit provides 3 interfaces: 1) Write an integer (to provide: echo 1 > clear_faults) 2) Read a file that represents a bit in a register. 3) Read a file that represents a bit in a register within a PMBus page (or in something that acts like a page). Additional ones may be added in the future. ReadFailure/WriteFailure exceptions will be thrown on errors. Change-Id: I7ea166da00ddc558a9f25c07e6ad9a16714cc3b6 Signed-off-by: Matt Spinler <spinler@us.ibm.com>
show more ...
|