]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
i2c: designware: Fix RX FIFO depth define on Wangxun 10Gb NIC
authorJarkko Nikula <jarkko.nikula@linux.intel.com>
Tue, 13 Feb 2024 12:48:46 +0000 (14:48 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 13 Apr 2024 11:07:35 +0000 (13:07 +0200)
commit30930f0f4674e4aa53d60a04e7185b854c61feeb
tree96c9d0beb0bba3f2461b7ab2fc60399cbfb30845
parentcd0a1835bf84f89e6c1648372b8e653c20cc7e5e
i2c: designware: Fix RX FIFO depth define on Wangxun 10Gb NIC

[ Upstream commit c94612a72ac87b0337a0d85b9263266776ed4190 ]

I believe RX FIFO depth define 0 is incorrect on Wangxun 10Gb NIC. It
must be at least 1 since code is able to read received data from the
DW_IC_DATA_CMD register.

For now this define is irrelevant since the txgbe_i2c_dw_xfer_quirk()
doesn't use the rx_fifo_depth member variable of struct dw_i2c_dev but
is needed when converting code into generic polling mode implementation.

Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Tested-by: Jiawen Wu <jiawenwu@trustnetic.com>
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/i2c/busses/i2c-designware-core.h