mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
wifi: mt76: mt7925: skip DMA re-init selectively
Add a flag to skip it on chips that don't need it. Signed-off-by: Jeff Hsu <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
@@ -418,6 +418,9 @@ int mt792x_wpdma_reinit_cond(struct mt792x_dev *dev)
|
||||
struct mt76_connac_pm *pm = &dev->pm;
|
||||
int err;
|
||||
|
||||
if (dev->skip_wpdma_reinit)
|
||||
return 0;
|
||||
|
||||
/* check if the wpdma must be reinitialized */
|
||||
if (mt792x_dma_need_reinit(dev)) {
|
||||
/* disable interrutpts */
|
||||
|
||||
Reference in New Issue
Block a user