Patch "i2c: designware: Fix RX FIFO depth define on Wangxun 10Gb NIC" has been added to the 6.6-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    i2c: designware: Fix RX FIFO depth define on Wangxun 10Gb NIC

to the 6.6-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     i2c-designware-fix-rx-fifo-depth-define-on-wangxun-1.patch
and it can be found in the queue-6.6 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit f14530fd4241b2d40643598e97da7b56b86ded17
Author: Jarkko Nikula <jarkko.nikula@xxxxxxxxxxxxxxx>
Date:   Tue Feb 13 14:48:46 2024 +0200

    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@xxxxxxxxxxxxxxx>
    Tested-by: Jiawen Wu <jiawenwu@xxxxxxxxxxxxxx>
    Signed-off-by: Andi Shyti <andi.shyti@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/i2c/busses/i2c-designware-core.h b/drivers/i2c/busses/i2c-designware-core.h
index a7f6f3eafad7d..ae835000fd32a 100644
--- a/drivers/i2c/busses/i2c-designware-core.h
+++ b/drivers/i2c/busses/i2c-designware-core.h
@@ -318,7 +318,7 @@ struct dw_i2c_dev {
 #define AMD_UCSI_INTR_EN			0xd
 
 #define TXGBE_TX_FIFO_DEPTH			4
-#define TXGBE_RX_FIFO_DEPTH			0
+#define TXGBE_RX_FIFO_DEPTH			1
 
 struct i2c_dw_semaphore_callbacks {
 	int	(*probe)(struct dw_i2c_dev *dev);




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux