commit | 3b8e36e238758bcf1c35a4bdb92f8d31f3049587 | [log] [tgz] |
---|---|---|
author | Matt Spinler <spinler@us.ibm.com> | Fri Jul 28 10:44:45 2017 -0500 |
committer | Matt Spinler <spinler@us.ibm.com> | Fri Jul 28 11:53:29 2017 -0500 |
tree | 6f0608cec76ed2563cb7149e6d44efa2fd4647a0 | |
parent | 1e6324fa4fc233c3f2913b3d5278aa06e45ff42f [diff] |
Allow EAGAIN failures Certain devices are known to return EAGAIN failures when read too frequently, so be tolerant of them. On startup, the code will retry for up to a second to get a good first reading, and then in the main loop the code will just stick with the current value if it fails that way. Resolves openbmc/openbmc#2038 Change-Id: I7621aa30429c43276239982a03ec3eef02ce9c6e Signed-off-by: Matt Spinler <spinler@us.ibm.com>