]> mj.ucw.cz Git - pciutils.git/commit
pcilmr: Add handling of situations when device reports its MaxOffset values equal...
authorNikita Proshkin <n.proshkin@yadro.com>
Wed, 27 Dec 2023 09:45:03 +0000 (14:45 +0500)
committerMartin Mares <mj@ucw.cz>
Sat, 17 Feb 2024 22:44:53 +0000 (23:44 +0100)
commit4eba399e79c179d70ce16044722fb7ecaa20e4cb
tree5b6fa7b0e54b5b86a7bda6f02dd8c31d0e9ac665
parent394b24da3faeb7d09ad7ef71ca2f05641887ab2d
pcilmr: Add handling of situations when device reports its MaxOffset values equal to 0

According to spec, for the MaxTimingOffset and MaxVoltageOffset parameters
'A 0 value may be reported if the vendor chooses not to report the offset'.

Use max possible Offset value in such situations and report to the user.

Reviewed-by: Sergei Miroshnichenko <s.miroshnichenko@yadro.com>
Signed-off-by: Nikita Proshkin <n.proshkin@yadro.com>
lmr/lmr.h
lmr/margin.c
lmr/margin_log.c
lmr/margin_results.c