Skip to content

Commit

Permalink
wifi: mt76: mt7925: add flow to avoid chip bt function fail
Browse files Browse the repository at this point in the history
A sub-process of Wifi L0.5 reset will make chip common partition
enter low power, and have chance lead to Bluetooth host-to-chip
command timeout, modify the software flow according to the chip's
design to solve the problem.

Fixes: c948b5d ("wifi: mt76: mt7925: add Mediatek Wi-Fi7 driver for mt7925 chips")
Signed-off-by: Quan Zhou <quan.zhou@mediatek.com>
Signed-off-by: Ming Yen Hsieh <mingyen.hsieh@mediatek.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
  • Loading branch information
Quanzhoucen authored and nbd168 committed Feb 22, 2024
1 parent d8cf7e1 commit 9300ae0
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/net/wireless/mediatek/mt76/mt7925/pci.c
Original file line number Diff line number Diff line change
@@ -386,6 +386,8 @@ static int mt7925_pci_probe(struct pci_dev *pdev,

dev_info(mdev->dev, "ASIC revision: %04x\n", mdev->rev);

mt76_rmw_field(dev, MT_HW_EMI_CTL, MT_HW_EMI_CTL_SLPPROT_EN, 1);

ret = mt792x_wfsys_reset(dev);
if (ret)
goto err_free_dev;
3 changes: 3 additions & 0 deletions drivers/net/wireless/mediatek/mt76/mt792x_regs.h
Original file line number Diff line number Diff line change
@@ -389,6 +389,9 @@
#define MT_HW_CHIPID 0x70010200
#define MT_HW_REV 0x70010204

#define MT_HW_EMI_CTL 0x18011100
#define MT_HW_EMI_CTL_SLPPROT_EN BIT(1)

#define MT_PCIE_MAC_BASE 0x10000
#define MT_PCIE_MAC(ofs) (MT_PCIE_MAC_BASE + (ofs))
#define MT_PCIE_MAC_INT_ENABLE MT_PCIE_MAC(0x188)

0 comments on commit 9300ae0

Please sign in to comment.