Re: [PATCH net-next v2 2/6] net: txgbe: Implement I2C bus master driver

Jarkko Nikula
2023-04-11T10:08:55Z

Hi

On 4/11/23 12:32, Jiawen Wu wrote:
> +Cc: Jarkko Nikula <jarkko.nikula@linux.intel.com>
>
>> -----Original Message-----
>> From: Jiawen Wu <jiawenwu@trustnetic.com>
>> Sent: Tuesday, April 11, 2023 5:27 PM
>> To: netdev@vger.kernel.org; linux@armlinux.org.uk
>> Cc: linux-i2c@vger.kernel.org; linux-gpio@vger.kernel.org;
>> mengyuanlou@net-swift.com; Jiawen Wu <jiawenwu@trustnetic.com>
>> Subject: [PATCH net-next v2 2/6] net: txgbe: Implement I2C bus master
>> driver
>>
>> Implement I2C bus driver to send and receive I2C messages.
>>
>> This I2C license the IP of Synopsys Designware, but without interrupt
>> support on the hardware design. It seems that polling mode needs to be
>> added in Synopsys Designware I2C driver. But currently it can only be
>> driven by this I2C bus master driver.
>>
>> Signed-off-by: Jiawen Wu <jiawenwu@trustnetic.com>
>> ---
>> drivers/net/ethernet/wangxun/Kconfig | 1 +
>> .../net/ethernet/wangxun/txgbe/txgbe_phy.c | 153
>> ++++++++++++++++++
>> .../net/ethernet/wangxun/txgbe/txgbe_type.h | 23 +++
>> 3 files changed, 177 insertions(+)
>>
Looks like your use case has similarities with the commit 17631e8ca2d3
("i2c: designware: Add driver support for AMD NAVI GPU").