pci.c (ff6551740000eac6a63445d30d5bac5c0ca900c3) pci.c (5c041325cd0b1307b196c686f87f8531d4d3f105)
1// SPDX-License-Identifier: ISC
2/* Copyright (C) 2020 MediaTek Inc.
3 *
4 */
5
6#include <linux/kernel.h>
7#include <linux/module.h>
8#include <linux/pci.h>

--- 32 unchanged lines hidden (view full) ---

41 mt76_unregister_device(&dev->mt76);
42 mt76_for_each_q_rx(&dev->mt76, i)
43 napi_disable(&dev->mt76.napi[i]);
44 cancel_delayed_work_sync(&pm->ps_work);
45 cancel_work_sync(&pm->wake_work);
46 cancel_work_sync(&dev->reset_work);
47
48 mt76_connac2_tx_token_put(&dev->mt76);
1// SPDX-License-Identifier: ISC
2/* Copyright (C) 2020 MediaTek Inc.
3 *
4 */
5
6#include <linux/kernel.h>
7#include <linux/module.h>
8#include <linux/pci.h>

--- 32 unchanged lines hidden (view full) ---

41 mt76_unregister_device(&dev->mt76);
42 mt76_for_each_q_rx(&dev->mt76, i)
43 napi_disable(&dev->mt76.napi[i]);
44 cancel_delayed_work_sync(&pm->ps_work);
45 cancel_work_sync(&pm->wake_work);
46 cancel_work_sync(&dev->reset_work);
47
48 mt76_connac2_tx_token_put(&dev->mt76);
49 __mt7921_mcu_drv_pmctrl(dev);
49 __mt792x_mcu_drv_pmctrl(dev);
50 mt792x_dma_cleanup(dev);
51 mt792x_wfsys_reset(dev);
52 skb_queue_purge(&dev->mt76.mcu.res_q);
53
54 tasklet_disable(&dev->mt76.irq_tasklet);
55}
56
57static u32 __mt7921_reg_addr(struct mt792x_dev *dev, u32 addr)

--- 419 unchanged lines hidden ---
50 mt792x_dma_cleanup(dev);
51 mt792x_wfsys_reset(dev);
52 skb_queue_purge(&dev->mt76.mcu.res_q);
53
54 tasklet_disable(&dev->mt76.irq_tasklet);
55}
56
57static u32 __mt7921_reg_addr(struct mt792x_dev *dev, u32 addr)

--- 419 unchanged lines hidden ---