[PATCH net-next 10/15] net: ethernet: mtk_wed: introduce WED support for MT7988

Lorenzo Bianconi lorenzo at kernel.org
Fri Sep 15 09:28:48 PDT 2023


> On Thu, Sep 14, 2023 at 04:38:15PM +0200, Lorenzo Bianconi wrote:
> > From: Sujuan Chen <sujuan.chen at mediatek.com>
> > 
> > Similar to MT7986 and MT7622, enable Wireless Ethernet Ditpatcher for
[...]
> > -	ring_size = dev->wlan.nbuf & ~(MTK_WED_BUF_PER_PAGE - 1);
> > -	n_pages = ring_size / MTK_WED_BUF_PER_PAGE;
> > +	if (!mtk_wed_is_v3_or_greater(dev->hw)) {
> > +		dev->tx_buf_ring.desc_size = sizeof(struct mtk_wdma_desc);
> 
> Instead of checking the version or using of_device_is_compatible() in 
> other places why don't you define driver match data for all this static 
> data.

ack, I will look into it.

Regards,
Lorenzo

> 
> Rob
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-mediatek/attachments/20230915/0f03b81a/attachment.sig>


More information about the Linux-mediatek mailing list