summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorNicolin Chen <nicoleotsuka@gmail.com>2018-11-05 12:48:42 -0800
committerGuenter Roeck <linux@roeck-us.net>2018-12-16 15:13:12 -0800
commit4c0415a371fdbac6531d435a50745255e32d0e0e (patch)
tree64ac67d6330de585f927736b49b6edeae1182d60 /tools/perf/scripts/python/exported-sql-viewer.py
parent87625b24986bc2aeea20cf8a795b01a799a471b0 (diff)
hwmon: (ina3221) Make sure data is ready before reading
The data might need some time to get ready after channel enabling, although the data register is always readable. The CVRF bit is to indicate that data conversion is finished, so polling the CVRF bit before data reading could ensure the result being valid. An alternative way could be to wait for expected time between the channel enabling and the data reading. And this could avoid extra I2C communications. However, INA3221 seemly takes longer time than what's stated in the datasheet. Test results show that sometimes it couldn't finish data conversion in time. So this patch plays safe by adding a CVRF polling to make sure the data register is updated with the new data. Signed-off-by: Nicolin Chen <nicoleotsuka@gmail.com> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions