Before, it was assumed that all debugfs mfr entries are the same for all pages. Now mfr registers can be present only on some pages or contain different values in different pages. Signed-off-by: Adam Wujek <dev_public@xxxxxxxx> --- drivers/hwmon/pmbus/pmbus_core.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/hwmon/pmbus/pmbus_core.c b/drivers/hwmon/pmbus/pmbus_core.c index 597cbe85df07..26fa927dac26 100644 --- a/drivers/hwmon/pmbus/pmbus_core.c +++ b/drivers/hwmon/pmbus/pmbus_core.c @@ -2664,7 +2664,8 @@ static ssize_t pmbus_debugfs_mfr_read(struct file *file, char __user *buf, struct pmbus_debugfs_entry *entry = file->private_data; char data[I2C_SMBUS_BLOCK_MAX + 2] = { 0 }; - rc = i2c_smbus_read_block_data(entry->client, entry->reg, data); + rc = pmbus_read_block_data(entry->client, entry->page, entry->reg, + data); if (rc < 0) return rc; -- 2.17.1