Skip to content

Commit

Permalink
Revert "mt76x2: reset HW before probe"
Browse files Browse the repository at this point in the history
This reverts commit 4d2c565.
Will be added back later after mt76x2u rework

Signed-off-by: Felix Fietkau <nbd@nbd.name>
  • Loading branch information
nbd168 committed Aug 25, 2018
1 parent 30b8371 commit d220f43
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion mt76x2.h
Expand Up @@ -180,7 +180,6 @@ extern const struct ieee80211_ops mt76x2_ops;

struct mt76x2_dev *mt76x2_alloc_device(struct device *pdev);
int mt76x2_register_device(struct mt76x2_dev *dev);
void mt76x2_set_wlan_state(struct mt76x2_dev *dev, bool enable);
void mt76x2_init_debugfs(struct mt76x2_dev *dev);

irqreturn_t mt76x2_irq_handler(int irq, void *dev_instance);
Expand Down
2 changes: 1 addition & 1 deletion mt76x2_init.c
Expand Up @@ -511,7 +511,7 @@ void mt76x2_set_tx_ackto(struct mt76x2_dev *dev)
MT_TX_TIMEOUT_CFG_ACKTO, ackto);
}

void
static void
mt76x2_set_wlan_state(struct mt76x2_dev *dev, bool enable)
{
u32 val = mt76_rr(dev, MT_WLAN_FUN_CTRL);
Expand Down
2 changes: 0 additions & 2 deletions mt76x2_pci.c
Expand Up @@ -54,8 +54,6 @@ mt76pci_probe(struct pci_dev *pdev, const struct pci_device_id *id)

mt76_mmio_init(&dev->mt76, pcim_iomap_table(pdev)[0]);

mt76x2_set_wlan_state(dev, false);

dev->mt76.rev = mt76_rr(dev, MT_ASIC_VERSION);
dev_info(dev->mt76.dev, "ASIC revision: %08x\n", dev->mt76.rev);

Expand Down

0 comments on commit d220f43

Please sign in to comment.