]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: ethernet: mtk_eth_soc: add txd_size to mtk_soc_data
authorLorenzo Bianconi <lorenzo@kernel.org>
Fri, 20 May 2022 18:11:28 +0000 (20:11 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 22 May 2022 21:24:32 +0000 (22:24 +0100)
commiteb067347aa87eaf8a42d945d3e877b1e8333f5ea
tree59bf63b070f7421ae448bc1b7a440777225b5ab4
parent731f3fd6bc879fcf11e99a2576747a33d3958cef
net: ethernet: mtk_eth_soc: add txd_size to mtk_soc_data

In order to remove mtk_tx_dma size dependency, introduce txd_size in
mtk_soc_data data structure. Rely on txd_size in mtk_init_fq_dma() and
mtk_dma_free() routines.
This is a preliminary patch to add mt7986 ethernet support.

Tested-by: Sam Shih <sam.shih@mediatek.com>
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mediatek/mtk_eth_soc.c
drivers/net/ethernet/mediatek/mtk_eth_soc.h