mirror of
https://github.com/torvalds/linux.git
synced 2026-10-08 19:46:02 +02:00
wifi: mt76: mt792x: replace shared PCIe MAC macros with per-chip struct
Update mt792x_wpdma_reinit_cond() to use dev->pcie_reg and remove the now unused MT_PCIE_MAC_INT_ENABLE and MT_PCIE_MAC_PM macros from mt792x_regs.h. This is a preparation patch before enabling MT7928 PCIe support. Signed-off-by: Emery Hsin <emery.hsin@mediatek.com> Link: https://patch.msgid.link/20260612075042.2577193-5-jb.tsai@mediatek.com Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
parent
0d0205dbf3
commit
d63b19ece3
|
|
@ -345,7 +345,8 @@ int mt792x_wpdma_reinit_cond(struct mt792x_dev *dev)
|
|||
if (mt792x_dma_need_reinit(dev)) {
|
||||
/* disable interrutpts */
|
||||
mt76_wr(dev, dev->irq_map->host_irq_enable, 0);
|
||||
mt76_wr(dev, MT_PCIE_MAC_INT_ENABLE, 0x0);
|
||||
if (dev->pcie_reg)
|
||||
mt76_wr(dev, dev->pcie_reg->imask, 0x0);
|
||||
|
||||
err = mt792x_wpdma_reset(dev, false);
|
||||
if (err) {
|
||||
|
|
@ -354,7 +355,8 @@ int mt792x_wpdma_reinit_cond(struct mt792x_dev *dev)
|
|||
}
|
||||
|
||||
/* enable interrutpts */
|
||||
mt76_wr(dev, MT_PCIE_MAC_INT_ENABLE, 0xff);
|
||||
if (dev->pcie_reg)
|
||||
mt76_wr(dev, dev->pcie_reg->imask, 0xff);
|
||||
pm->stats.lp_wake++;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -415,10 +415,6 @@
|
|||
#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)
|
||||
#define MT_PCIE_MAC_PM MT_PCIE_MAC(0x194)
|
||||
#define MT_PCIE_MAC_PM_L0S_DIS BIT(8)
|
||||
|
||||
#define MT_DMA_SHDL(ofs) (0x7c026000 + (ofs))
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user