RE: FEC unbind/bind feature
From: Joakim Zhang <hidden>
Date: 2021-03-26 13:19:37
-----Original Message----- From: Andrew Lunn <andrew@lunn.ch> Sent: 2021年3月26日 20:34 To: Joakim Zhang <redacted> Cc: Florian Fainelli <f.fainelli@gmail.com>; hkallweit1@gmail.com; netdev@vger.kernel.org Subject: Re: FEC unbind/bind featurequoted
One more add, yes, I am looking the drivers/net/mdio, it is better toimplement standalone MDIO driver when writing the MAC driver at the beginning.quoted
Now if I abstract MDIO driver from FEC driver, dt bindings would change, itwill break all existing implementations in the kernel based on FEC driver, let them can't work.quoted
How to compatible the legacy dt bindings? I have no idea now. At the sametime, I also feel that it seems not necessary to rewrite it. I have a reasonable understanding of the FEC MDIO driver. I have broken it a few times :-) It is going to be hard to make it an independent driver, because it needs access to the interrupt flags and the clocks for power saving. From a hardware perspective, it is not an independent hardware block, it is integrated into the MAC. XDP probably is your easier path.
Thanks Andrew for your share, you mean use XDP instead DPDK, right? Best Regards, Joakim Zhang
Andrew