Commit f0fb26c4 authored by Chu Lin's avatar Chu Lin Committed by Guenter Roeck

hwmon/pmbus: (q54sj108a2) The PMBUS_MFR_ID is actually 6 chars instead of 5

The PMBUS_MFR_ID block is actually 6 chars for q54sj108a2.
/sys/bus/i2c/drivers/q54sj108a2_test# iotools smbus_read8 $BUS $ADDR 0x99
0x06

Tested: Devices are able to bind to the q54sj108a2 driver successfully.
Signed-off-by: default avatarChu Lin <linchuyuan@google.com>
Link: https://lore.kernel.org/r/20210517222606.3457594-1-linchuyuan@google.comSigned-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent 2a29db08
...@@ -299,7 +299,7 @@ static int q54sj108a2_probe(struct i2c_client *client) ...@@ -299,7 +299,7 @@ static int q54sj108a2_probe(struct i2c_client *client)
dev_err(&client->dev, "Failed to read Manufacturer ID\n"); dev_err(&client->dev, "Failed to read Manufacturer ID\n");
return ret; return ret;
} }
if (ret != 5 || strncmp(buf, "DELTA", 5)) { if (ret != 6 || strncmp(buf, "DELTA", 5)) {
buf[ret] = '\0'; buf[ret] = '\0';
dev_err(dev, "Unsupported Manufacturer ID '%s'\n", buf); dev_err(dev, "Unsupported Manufacturer ID '%s'\n", buf);
return -ENODEV; return -ENODEV;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment