Skip to contentSkip to conversation

mt76x0: init: remove unnecessary configurations

PATCH Applied Lorenzo Bianconi 2 participants 2 messages Oct 1, 2018 – Oct 4, 2018 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore
#1 lore raw

PATCH v2 1/1 mt76x0: init: remove unnecessary configurations

In reply to a message not in the archive

Remove leftover configuration for legacy devices in mt76x0_init_mac_registers routine. Moreover remove unnecessary msleep delay

---
Changes since v1
- remove msleep delay

---
 drivers/net/wireless/mediatek/mt76/mt76x0/init.c | 6 ------
 1 file changed, 6 deletions(-)
drivers/net/wireless/mediatek/mt76/mt76x0/init.c +0 -6
index edfd5d94d197..d64594205491 100644
@@ -172,12 +172,6 @@ static void mt76x0_init_mac_registers(struct mt76x0_dev *dev)
 	reg &= ~0x000003FF;
 	reg |= 0x00000201;
 	mt76_wr(dev, MT_WMM_CTRL, reg);
-
-	/* TODO: Probably not needed */
-	mt76_wr(dev, 0x7028, 0);
-	mt76_wr(dev, 0x7010, 0);
-	mt76_wr(dev, 0x7024, 0);
-	msleep(10);
 }
 
 static int mt76x0_init_wcid_mem(struct mt76x0_dev *dev)
Signature · 1 line
2.17.1
maintainer Applied
#2 lore raw
Quoted 5 lines · Lorenzo Bianconi

Remove leftover configuration for legacy devices in mt76x0_init_mac_registers routine. Moreover remove unnecessary msleep delay

Merged, thanks.

- Felix