summaryrefslogtreecommitdiff
path: root/drivers/hwmon/pmbus/pmbus_core.c
diff options
context:
space:
mode:
authorNinad Malwade <nmalwade@nvidia.com>2021-06-04 09:54:43 +0300
committerGuenter Roeck <linux@roeck-us.net>2021-06-17 14:21:46 +0300
commit6b6af85410cf2db95d39ad9aa1d812a35eb1651e (patch)
tree787cc8828492427b17932505c71b18b2a35ae52f /drivers/hwmon/pmbus/pmbus_core.c
parent1814c4e84de2a89d1c2e1e9bbd241240561075a4 (diff)
downloadlinux-6b6af85410cf2db95d39ad9aa1d812a35eb1651e.tar.xz
hwmon: (ina3221) use CVRF only for single-shot conversion
As per current logic the wait time per conversion is arouns 430ms for 512 samples and around 860ms for 1024 samples for 3 channels considering 140us as the bus voltage and shunt voltage sampling conversion time. This waiting time is a lot for the continuous mode and even for the single shot mode. For continuous mode when moving average is considered the waiting for CVRF bit is not required and the data from the previous conversion is sufficuent. As mentioned in the datasheet the conversion ready bit is provided to help coordinate single-shot conversions, we can restrict the use to single-shot mode only. Also, the conversion time is for the averaged samples, the wait time for the polling can omit the number of samples consideration. Signed-off-by: Ninad Malwade <nmalwade@nvidia.com> Link: https://lore.kernel.org/r/1622789683-30931-1-git-send-email-nmalwade@nvidia.com Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon/pmbus/pmbus_core.c')
0 files changed, 0 insertions, 0 deletions