init.c (16d98b548365fcd6fc3fe2e1ae73c9e3cc5ee43d) | init.c (48fab5bbef4092d925ab3214773ad12e68807223) |
---|---|
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" --- 217 unchanged lines hidden (view full) --- 226 INIT_LIST_HEAD(&dev->sta_poll_list); 227 spin_lock_init(&dev->sta_poll_lock); 228 229 INIT_WORK(&dev->reset_work, mt7921_mac_reset_work); 230 231 dev->pm.idle_timeout = MT7921_PM_TIMEOUT; 232 dev->pm.stats.last_wake_event = jiffies; 233 dev->pm.stats.last_doze_event = jiffies; | 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" --- 217 unchanged lines hidden (view full) --- 226 INIT_LIST_HEAD(&dev->sta_poll_list); 227 spin_lock_init(&dev->sta_poll_lock); 228 229 INIT_WORK(&dev->reset_work, mt7921_mac_reset_work); 230 231 dev->pm.idle_timeout = MT7921_PM_TIMEOUT; 232 dev->pm.stats.last_wake_event = jiffies; 233 dev->pm.stats.last_doze_event = jiffies; |
234 dev->pm.enable = true; 235 dev->pm.ds_enable = true; | |
236 | 234 |
235 /* TODO: mt7921s run sleep mode on default */ 236 if (mt76_is_mmio(&dev->mt76)) { 237 dev->pm.enable = true; 238 dev->pm.ds_enable = true; 239 } 240 241 if (mt76_is_sdio(&dev->mt76)) 242 hw->extra_tx_headroom += MT_SDIO_TXD_SIZE + MT_SDIO_HDR_SIZE; 243 |
|
237 ret = mt7921_init_hardware(dev); 238 if (ret) 239 return ret; 240 241 ret = mt7921_init_wiphy(hw); 242 if (ret) 243 return ret; 244 --- 37 unchanged lines hidden --- | 244 ret = mt7921_init_hardware(dev); 245 if (ret) 246 return ret; 247 248 ret = mt7921_init_wiphy(hw); 249 if (ret) 250 return ret; 251 --- 37 unchanged lines hidden --- |