aboutsummaryrefslogtreecommitdiff
path: root/drivers/usb/cdns3/cdns3-trace.c
diff options
context:
space:
mode:
authorMårten Lindahl <[email protected]>2022-06-14 11:38:54 +0200
committerGuenter Roeck <[email protected]>2022-07-13 08:38:20 -0700
commit07fb76273db89d9340fa1fea2997d73fa3768ab9 (patch)
tree500a59d874257de003e22dd0062b3defab1cbc0d /drivers/usb/cdns3/cdns3-trace.c
parentb674bcb13f418e0580878c21afbe14c4bdfa3138 (diff)
hwmon: (pmbus) Introduce and use cached vout margins
When setting a new voltage the voltage boundaries are read every time to check that the new voltage is within the proper range. Checking these voltage boundaries consists of reading one of PMBUS_MFR_VOUT_MIN/ PMBUS_VOUT_MARGIN_LOW registers and then PMBUS_MFR_VOUT_MAX/ PMBUS_VOUT_MARGIN_HIGH together with writing the PMBUS_CLEAR_FAULTS register. Since these boundaries are never being changed, it can be cached and thus saving unnecessary smbus transmissions. Signed-off-by: Mårten Lindahl <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Guenter Roeck <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-trace.c')
0 files changed, 0 insertions, 0 deletions