]> git.baikalelectronics.ru Git - kernel.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)
commit6a0162c755630c9b6f8c33bcbd67f86fedc0e79a
tree59bf63b070f7421ae448bc1b7a440777225b5ab4
parenta8f1e2310169e3a0678cf1b1eefcc2c091ec97f0
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