[PATCH net-next 5/5] net: ethernet: mtk_wed: add reset to tx_ring_setup callback

Jakub Kicinski kuba at kernel.org
Tue Nov 22 11:13:50 PST 2022


On Tue, 22 Nov 2022 10:41:28 +0100 Felix Fietkau wrote:
> > That's a tiny bit better, yes, saves the reader one lookup.
> > 
> > Are the ops here serving as a HAL or a way of breaking the dependency
> > between the SoC/Eth and the WiFi drivers?  
> The latter. For a multi-platform kernel it's important that the wifi 
> driver does not depend on mtk_eth_soc directly, even when support for 
> WED is enabled.

Ah, I see, that's more legit. In the stmmac case it was just a poorly
designed abstraction. I'll try to remember not to complain again.



More information about the Linux-mediatek mailing list