diff options
author | Ryder Lee <ryder.lee@mediatek.com> | 2022-03-19 07:53:50 +0300 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2022-05-13 10:39:34 +0300 |
commit | 5beadb27fa808172c26a6a6d3e8500cf6b547c48 (patch) | |
tree | 9428fc1de9dd247734a31a1354b3209f67eb17ba /drivers/net/wireless/mediatek/mt76/mt7915/pci.c | |
parent | 47eea8ad62a1203ce20b365f7feba23fef62a487 (diff) | |
download | linux-5beadb27fa808172c26a6a6d3e8500cf6b547c48.tar.xz |
mt76: mt7915: always call mt7915_wfsys_reset() during init
Soft reboot might not clear certain condition, so always call
mt7915_wfsys_reset() during init.
Signed-off-by: Ryder Lee <ryder.lee@mediatek.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'drivers/net/wireless/mediatek/mt76/mt7915/pci.c')
-rw-r--r-- | drivers/net/wireless/mediatek/mt76/mt7915/pci.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/mediatek/mt76/mt7915/pci.c b/drivers/net/wireless/mediatek/mt76/mt7915/pci.c index 6f819c41a4c4..1bab1cbb0d89 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7915/pci.c +++ b/drivers/net/wireless/mediatek/mt76/mt7915/pci.c @@ -126,6 +126,7 @@ static int mt7915_pci_probe(struct pci_dev *pdev, return PTR_ERR(dev); mdev = &dev->mt76; + mt7915_wfsys_reset(dev); hif2 = mt7915_pci_init_hif2(pdev); ret = pci_alloc_irq_vectors(pdev, 1, 1, PCI_IRQ_ALL_TYPES); |