]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: mctp-i2c: fix duplicate reception of old data
authorJian Zhang <zhangjian.3032@bytedance.com>
Thu, 8 Jan 2026 10:18:29 +0000 (18:18 +0800)
committerJakub Kicinski <kuba@kernel.org>
Tue, 13 Jan 2026 03:22:36 +0000 (19:22 -0800)
commitae4744e173fadd092c43eda4ca92dcb74645225a
tree4525e0c59118433bcf8146261ab00695cc4256ee
parentaab8aa1b8a1892ccbd2d2d54f93bb273223d7546
net: mctp-i2c: fix duplicate reception of old data

The MCTP I2C slave callback did not handle I2C_SLAVE_READ_REQUESTED
events. As a result, i2c read event will trigger repeated reception of
old data, reset rx_pos when a read request is received.

Signed-off-by: Jian Zhang <zhangjian.3032@bytedance.com>
Link: https://patch.msgid.link/20260108101829.1140448-1-zhangjian.3032@bytedance.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/mctp/mctp-i2c.c