init.c (2c25f4e4cdc924c82385b83b09476db6a6fcd4f4) init.c (0da3c795d07bf005d4b0be8d6cdc4714aa51a988)
1// SPDX-License-Identifier: ISC
2/* Copyright (C) 2020 MediaTek Inc. */
3
4#include <linux/etherdevice.h>
5#include "mt7921.h"
6#include "mac.h"
7#include "mcu.h"
8#include "eeprom.h"

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

221 INIT_DELAYED_WORK(&dev->pm.ps_work, mt7921_pm_power_save_work);
222 INIT_WORK(&dev->pm.wake_work, mt7921_pm_wake_work);
223 init_completion(&dev->pm.wake_cmpl);
224 spin_lock_init(&dev->pm.txq_lock);
225 set_bit(MT76_STATE_PM, &dev->mphy.state);
226 INIT_LIST_HEAD(&dev->phy.stats_list);
227 INIT_DELAYED_WORK(&dev->mphy.mac_work, mt7921_mac_work);
228 INIT_DELAYED_WORK(&dev->phy.scan_work, mt7921_scan_work);
1// SPDX-License-Identifier: ISC
2/* Copyright (C) 2020 MediaTek Inc. */
3
4#include <linux/etherdevice.h>
5#include "mt7921.h"
6#include "mac.h"
7#include "mcu.h"
8#include "eeprom.h"

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

221 INIT_DELAYED_WORK(&dev->pm.ps_work, mt7921_pm_power_save_work);
222 INIT_WORK(&dev->pm.wake_work, mt7921_pm_wake_work);
223 init_completion(&dev->pm.wake_cmpl);
224 spin_lock_init(&dev->pm.txq_lock);
225 set_bit(MT76_STATE_PM, &dev->mphy.state);
226 INIT_LIST_HEAD(&dev->phy.stats_list);
227 INIT_DELAYED_WORK(&dev->mphy.mac_work, mt7921_mac_work);
228 INIT_DELAYED_WORK(&dev->phy.scan_work, mt7921_scan_work);
229 INIT_DELAYED_WORK(&dev->coredump.work, mt7921_coredump_work);
229 skb_queue_head_init(&dev->phy.scan_event_list);
230 skb_queue_head_init(&dev->phy.scan_event_list);
231 skb_queue_head_init(&dev->coredump.msg_list);
230 INIT_LIST_HEAD(&dev->sta_poll_list);
231 spin_lock_init(&dev->sta_poll_lock);
232
233 init_waitqueue_head(&dev->reset_wait);
234 INIT_WORK(&dev->reset_work, mt7921_mac_reset_work);
235
236 ret = mt7921_init_hardware(dev);
237 if (ret)

--- 43 unchanged lines hidden ---
232 INIT_LIST_HEAD(&dev->sta_poll_list);
233 spin_lock_init(&dev->sta_poll_lock);
234
235 init_waitqueue_head(&dev->reset_wait);
236 INIT_WORK(&dev->reset_work, mt7921_mac_reset_work);
237
238 ret = mt7921_init_hardware(dev);
239 if (ret)

--- 43 unchanged lines hidden ---