Skip to content

hwmon: (pmbus/core) Introduce and use pmbus_read_smbus_i2c_block_data()

Guenter Roeck linux-hwmon 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5hwmon: (pmbus/core) Introduce pmbus_read_smbus_i2c_block_data()drivers/hwmon/pmbus/pmbus.h drivers/hwmon/pmbus/pmbus_core.c+95 -82 replies
2/5hwmon: (pmbus/adm1275) Use pmbus_read_smbus_i2c_block_data for block commandsdrivers/hwmon/pmbus/adm1275.c+2 -70 replies
3/5hwmon: (pmbus/ltc2978) Use pmbus_read_smbus_i2c_block_data for block commandsdrivers/hwmon/pmbus/ltc2978.c+9 -120 replies
4/5hwmon: (pmbus/max20830) Use pmbus_read_smbus_i2c_block_data for block commandsdrivers/hwmon/pmbus/max20830.c+4 -300 replies
5/5hwmon: (pmbus/ir36021) Use pmbus_read_smbus_i2c_block_data for block commandsdrivers/hwmon/pmbus/ir36021.c+7 -150 replies

Reviews trailers per patch

None of the 5 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchNuno Sá
SeriesR-b
1/5
2/5
3/5
4/5
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/5] hwmon: (pmbus/core) Introduce and use pmbus_read_smbus_i2c_block_data()

PMBus drivers need support for reading SMBus block data. Unfortunately, not all i2C controllers support this command.

Implement pmbus_read_smbus_i2c_block_data() which first tries to use i2c_smbus_read_block_data(). If not supported, try to emulate it by calling i2c_smbus_read_i2c_block_data(). Export the new function for use in PMBus drivers, and use it in affected drivers.

----------------------------------------------------------------
Guenter Roeck (5):
hwmon: (pmbus/core) Introduce pmbus_read_smbus_i2c_block_data()
hwmon: (pmbus/adm1275) Use pmbus_read_smbus_i2c_block_data for block commands
hwmon: (pmbus/ltc2978) Use pmbus_read_smbus_i2c_block_data for block commands
hwmon: (pmbus/max20830) Use pmbus_read_smbus_i2c_block_data for block commands
hwmon: (pmbus/ir36021) Use pmbus_read_smbus_i2c_block_data for block commands

 drivers/hwmon/pmbus/adm1275.c    |   9 +---
 drivers/hwmon/pmbus/ir36021.c    |  22 +++------
 drivers/hwmon/pmbus/ltc2978.c    |  21 ++++----
 drivers/hwmon/pmbus/max20830.c   |  34 ++-----------
 drivers/hwmon/pmbus/pmbus.h      |   1 +
 drivers/hwmon/pmbus/pmbus_core.c | 102 ++++++++++++++++++++++++++++++++++++---
 6 files changed, 117 insertions(+), 72 deletions(-)