Skip to content

Commit c94612a

Browse files
jhnikulaAndi Shyti
authored andcommitted
i2c: designware: Fix RX FIFO depth define on Wangxun 10Gb NIC
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 <[email protected]> Tested-by: Jiawen Wu <[email protected]> Signed-off-by: Andi Shyti <[email protected]>
1 parent bd002ef commit c94612a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/i2c/busses/i2c-designware-core.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ struct dw_i2c_dev {
319319
#define AMD_UCSI_INTR_EN 0xd
320320

321321
#define TXGBE_TX_FIFO_DEPTH 4
322-
#define TXGBE_RX_FIFO_DEPTH 0
322+
#define TXGBE_RX_FIFO_DEPTH 1
323323

324324
struct i2c_dw_semaphore_callbacks {
325325
int (*probe)(struct dw_i2c_dev *dev);

0 commit comments

Comments
 (0)