mt76: mt7921: move mt7921_dma_reset in dma.c
authorLorenzo Bianconi <lorenzo@kernel.org>
Mon, 19 Apr 2021 14:20:54 +0000 (22:20 +0800)
committerFelix Fietkau <nbd@nbd.name>
Wed, 21 Apr 2021 18:55:54 +0000 (20:55 +0200)
commit0a1059d0f06023a7d045d05055c9d2ebad3b9c9d
tree4cfe5f07ef40fa6f47baa47d016b821348d42869
parent4a52d6abb193aea0f2923a2c917502bd2d718630
mt76: mt7921: move mt7921_dma_reset in dma.c

Move mt7921_dma_reset routine in dma.c and make mt7921_dma_prefetch
static. Moreover add force parameter to mt7921_dma_reset signature.
This is a preliminary patch to reset dma mt7921_mcu_drv_pmctrl.

Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7921/dma.c
drivers/net/wireless/mediatek/mt76/mt7921/mac.c
drivers/net/wireless/mediatek/mt76/mt7921/mt7921.h