commit | bc641112abc99b4a972665aa984023a6713a21ac | [log] [tgz] |
---|---|---|
author | Jason M. Bills <jason.m.bills@linux.intel.com> | Wed Aug 19 16:31:53 2020 -0700 |
committer | Jason M. Bills <jason.m.bills@linux.intel.com> | Wed Aug 19 16:31:53 2020 -0700 |
tree | 4678e9b478bd4b5285969bec19a45607643db7d6 | |
parent | 6ca3164be78492bdfc1eac5ab528b896dde299ca [diff] |
Initialize variables Some commands were returning uninitialized data in failure cases. This initializes the variables to avoid the garbage data. Tested: Ran each PECI command and confirmed that they each still behave correctly. Change-Id: I1b774d038e20ca17c62cf0586a715767f373dc8a Signed-off-by: Jason M. Bills <jason.m.bills@linux.intel.com>
libpeci is a library that provides various APIs to interface with the IOCTLs provided by the PECI driver in the OpenBMC kernel. Currently available here:
https://github.com/openbmc/linux/blob/dev-5.4/include/uapi/linux/peci-ioctl.h
This repo also includes a peci_cmds command-line utility with functions that map to the libpeci APIs. It can be used to test PECI functionality across the library, driver, and hardware.