OSDN Git Service

mt76: mt7615: remove unnecessary register operations
authorSean Wang <sean.wang@mediatek.com>
Thu, 2 Apr 2020 13:06:42 +0000 (15:06 +0200)
committerFelix Fietkau <nbd@nbd.name>
Tue, 12 May 2020 17:52:29 +0000 (19:52 +0200)
Remove mt76_wr(dev, MT_CSR(0x010), 0x8208) that would cause
MT_PCIE_IRQ_ENABLE to be disabled; MT_PCIE_IRQ_ENABLE should always keep
on enabled when the driver is running.

0x44064 is a not existing address

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/mt7615/init.c

index f477594..be0f3a7 100644 (file)
@@ -117,8 +117,6 @@ static void mt7615_mac_init(struct mt7615_dev *dev)
                FIELD_PREP(MT_DMA_DCR0_MAX_RX_LEN, 3072) |
                MT_DMA_DCR0_RX_VEC_DROP);
        if (is_mt7663(&dev->mt76)) {
-               mt76_wr(dev, MT_CSR(0x010), 0x8208);
-               mt76_wr(dev, 0x44064, 0x2000000);
                mt76_wr(dev, MT_WF_AGG(0x160), 0x5c341c02);
                mt76_wr(dev, MT_WF_AGG(0x164), 0x70708040);
        } else {