summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/mediatek/mt76/mmio.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2021-12-06 13:45:54 +0100
committerFelix Fietkau <nbd@nbd.name>2022-05-13 09:39:35 +0200
commitf68d67623dec9445960b52a0e9e8e60297596b4b (patch)
treee649144377b94fdf812516926a1686c01bb6ca09 /drivers/net/wireless/mediatek/mt76/mmio.c
parent61b5156bf02dbd642de94eb61a3bc4ab6f8bfb71 (diff)
downloadlinux-stable-f68d67623dec9445960b52a0e9e8e60297596b4b.tar.gz
linux-stable-f68d67623dec9445960b52a0e9e8e60297596b4b.tar.bz2
linux-stable-f68d67623dec9445960b52a0e9e8e60297596b4b.zip
mt76: mt7915: add Wireless Ethernet Dispatch support
This is used to support hardware flow offloading from Ethernet to WLAN Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'drivers/net/wireless/mediatek/mt76/mmio.c')
-rw-r--r--drivers/net/wireless/mediatek/mt76/mmio.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/drivers/net/wireless/mediatek/mt76/mmio.c b/drivers/net/wireless/mediatek/mt76/mmio.c
index 26353b6bce97..86e3d2ac4d0d 100644
--- a/drivers/net/wireless/mediatek/mt76/mmio.c
+++ b/drivers/net/wireless/mediatek/mt76/mmio.c
@@ -73,8 +73,13 @@ void mt76_set_irq_mask(struct mt76_dev *dev, u32 addr,
spin_lock_irqsave(&dev->mmio.irq_lock, flags);
dev->mmio.irqmask &= ~clear;
dev->mmio.irqmask |= set;
- if (addr)
- mt76_mmio_wr(dev, addr, dev->mmio.irqmask);
+ if (addr) {
+ if (mtk_wed_device_active(&dev->mmio.wed))
+ mtk_wed_device_irq_set_mask(&dev->mmio.wed,
+ dev->mmio.irqmask);
+ else
+ mt76_mmio_wr(dev, addr, dev->mmio.irqmask);
+ }
spin_unlock_irqrestore(&dev->mmio.irq_lock, flags);
}
EXPORT_SYMBOL_GPL(mt76_set_irq_mask);