]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: mlxbf: incorrect base address passed during io write
authorAsmaa Mnebhi <asmaa@nvidia.com>
Thu, 8 Sep 2022 17:35:38 +0000 (13:35 -0400)
committerWolfram Sang <wsa@kernel.org>
Sat, 17 Sep 2022 18:11:21 +0000 (20:11 +0200)
commitc0964d64aa911a5361b3d9a43dc868f4a2e15f71
treea81ef4d65beeee1cba035d46ddfc5c342004a4d7
parentc1b31f711815a05aebb9fdaa2d7d980ee125a539
i2c: mlxbf: incorrect base address passed during io write

Correct the base address used during io write.
This bug had no impact over the overall functionality of the read and write
transactions. MLXBF_I2C_CAUSE_OR_CLEAR=0x18 so writing to (smbus->io + 0x18)
instead of (mst_cause->ioi + 0x18) actually writes to the sc_low_timeout
register which just sets the timeout value before a read/write aborts.

Fixes: 2fd238a293cc7ee4 (i2c: mlxbf: I2C SMBus driver for Mellanox BlueField SoC)
Reviewed-by: Khalil Blaiech <kblaiech@nvidia.com>
Signed-off-by: Asmaa Mnebhi <asmaa@nvidia.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/busses/i2c-mlxbf.c