Handle PECI operation errors

PECI request can return with error because of device is busy or
unavailable or something else. Currently this errors are not handled in
peci-pcie daemon which leads to exposing corrupted information about
device such as not showing device Manufacturer.
This code refactoring brings error handling and discards device
information if there was read error while probing.

Tested: verified with debug print that in case of read errors all
	required data re-requested or discarded
	No regressions found.
Signed-off-by: Andrei Kartashev <a.kartashev@yadro.com>
Change-Id: Ide810d8a0a842a4615477617747c131eacf4823a
1 file changed
tree: c6d09b7f062a7de3721681a26d435357cf434d25
  1. include/
  2. service_files/
  3. src/
  4. utils/
  5. .clang-format
  6. CMakeLists.txt
  7. LICENSE
  8. MAINTAINERS
  9. README.md
README.md

peci-pcie

The peci-pcie application uses the CPU PECI interface to get PCIe Device information for the system and shares it on D-Bus. The information from D-Bus is used by bmcweb to populate the PCIe Device resources in Redfish.