mt76x0: init: remove unnecessary configurations
Subsystems (2)
A message that is not in the archive (sent off-list or not yet received): [email protected]
PATCH 1/1 mt76x0: init: remove unnecessary configurations
Remove leftover configuration for legacy devices in mt76x0_init_mac_registers routine. Moreover substitute msleep function with usleep_range routine
Signed-off-by Lorenzo Bianconi <[email protected]>
--- drivers/net/wireless/mediatek/mt76/mt76x0/init.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-)
drivers/net/wireless/mediatek/mt76/mt76x0/init.c +1 -6
@@ -172,12 +172,7 @@ 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 ); +usleep_range (10000 ,20000 ); }static int mt76x0_init_wcid_mem (struct mt76x0_dev *dev)
Signature · 1 line
2.17.1