mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 05:16:57 +00:00
wifi: mt76: mt7925: skip DMA re-init selectively
Add a flag to skip it on chips that don't need it. Signed-off-by: Jeff Hsu <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
@@ -650,6 +650,9 @@ static int mt7925_pci_probe(struct pci_dev *pdev,
|
||||
if (!mt7925_disable_aspm && mt76_pci_aspm_supported(pdev))
|
||||
dev->aspm_supported = true;
|
||||
|
||||
if (is_mt7928(&dev->mt76))
|
||||
dev->skip_wpdma_reinit = true;
|
||||
|
||||
ret = __mt792x_mcu_fw_pmctrl(dev);
|
||||
if (ret)
|
||||
goto err_free_dev;
|
||||
|
||||
@@ -273,6 +273,7 @@ struct mt792x_dev {
|
||||
bool hif_idle:1;
|
||||
bool hif_resumed:1;
|
||||
bool regd_change:1;
|
||||
bool skip_wpdma_reinit:1;
|
||||
wait_queue_head_t wait;
|
||||
|
||||
struct work_struct init_work;
|
||||
|
||||
@@ -418,6 +418,9 @@ int mt792x_wpdma_reinit_cond(struct mt792x_dev *dev)
|
||||
struct mt76_connac_pm *pm = &dev->pm;
|
||||
int err;
|
||||
|
||||
if (dev->skip_wpdma_reinit)
|
||||
return 0;
|
||||
|
||||
/* check if the wpdma must be reinitialized */
|
||||
if (mt792x_dma_need_reinit(dev)) {
|
||||
/* disable interrutpts */
|
||||
|
||||
Reference in New Issue
Block a user