Re: [PATCH net-next v4 00/14] yt6801: Add Motorcomm yt6801 PCIe driver

From: Frank Sae
Date: Fri Apr 11 2025 - 06:00:42 EST




On 2025/4/8 18:30, Russell King (Oracle) wrote:
> On Tue, Apr 08, 2025 at 05:28:21PM +0800, Frank Sae wrote:
>> This series includes adding Motorcomm YT6801 Gigabit ethernet driver
>> and adding yt6801 ethernet driver entry in MAINTAINERS file.
>> YT6801 integrates a YT8531S phy.
>
> What is different between this and the Designware GMAC4 core supported
> by drivers/net/ethernet/stmicro/stmmac/ ?
>

We support more features: NS, RSS, wpi, wol pattern and aspm control.

> Looking at the register layout, it looks very similar. The layout of the
> MAC control register looks similar. The RX queue and PMT registers are
> at the same relative offset. The MDIO registers as well.
>
> Can you re-use the stmmac driver?
>

I can not re-use the stmmac driver, because pcie and ephy can not work well on
the stmmac driver.