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