commit | b5c46a53ee6b1f97104883d93847b2b2fdddc289 | [log] [tgz] |
---|---|---|
author | Eddie James <eajames@linux.ibm.com> | Tue Apr 16 15:43:48 2019 +0000 |
committer | Guenter Roeck <linux@roeck-us.net> | Tue Apr 16 15:12:13 2019 -0700 |
tree | fcfb20d259c7a37a785718d90892b9f61db7888d | |
parent | 5c090abf945bf5fd496c861f371410888be8f4de [diff] |
hwmon: (occ) Store error condition for rate-limited polls The OCC driver limits the rate of sending poll commands to the OCC. If a user reads a hwmon entry after a poll response resulted in an error and is rate-limited, the error is invisible to the user. Fix this by storing the last error and returning that in the rate-limited case. Signed-off-by: Eddie James <eajames@linux.ibm.com> Signed-off-by: Guenter Roeck <linux@roeck-us.net>