mt76: mt7921: introduce mt7921_dma_{enable,disable} utilities
authorLorenzo Bianconi <lorenzo@kernel.org>
Mon, 19 Apr 2021 14:20:56 +0000 (22:20 +0800)
committerFelix Fietkau <nbd@nbd.name>
Wed, 21 Apr 2021 18:55:54 +0000 (20:55 +0200)
commit5536e7354aa8abf0e27a1bc58f4b4653b4884bdf
tree359009de1cbe6762fbd9011de84092deecdb0357
parentfcad15d52ef52002e069ed9a091a0c0a54691c27
mt76: mt7921: introduce mt7921_dma_{enable,disable} utilities

Introduce mt7921_dma_enable and mt7921_dma_disable utilities routine in
order for code reusing between mt7921_dma_reset and mt7921_dma_init.
This is a preliminary patch to reset dma during device driver_own
request.

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