i2c: tegra: Fix PEC support for SMBUS block read
authorAkhil R <akhilrajeev@nvidia.com>
Thu, 27 Apr 2023 12:39:14 +0000 (18:09 +0530)
committerWolfram Sang <wsa@kernel.org>
Sun, 30 Apr 2023 05:49:06 +0000 (07:49 +0200)
commit9f855779a3874eee70e9f6be57b5f7774f14e510
treee7add429b7369a3ec28768ab5b3177d95634803d
parent825a0714d2b3883d4f8ff64f6933fb73ee3f1834
i2c: tegra: Fix PEC support for SMBUS block read

Update the msg->len value correctly for SMBUS block read. The discrepancy
went unnoticed as msg->len is used in SMBUS transfers only when a PEC
byte is added.

Fixes: d7583c8a5748 ("i2c: tegra: Add SMBus block read function")
Signed-off-by: Akhil R <akhilrajeev@nvidia.com>
Acked-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/busses/i2c-tegra.c