init.c (033ae79b383020928c687e345661f080e5f42c51) | init.c (8910a4e5ba342ad661acb6f99fa14e0dd809465e) |
---|---|
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" --- 131 unchanged lines hidden (view full) --- 140 MT_WTBL_UPDATE_ADM_COUNT_CLEAR); 141 for (i = 0; i < 2; i++) 142 mt7921_mac_init_band(dev, i); 143 144 dev->mt76.rxfilter = mt76_rr(dev, MT_WF_RFCR(0)); 145 146 return mt76_connac_mcu_set_rts_thresh(&dev->mt76, 0x92b, 0); 147} | 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" --- 131 unchanged lines hidden (view full) --- 140 MT_WTBL_UPDATE_ADM_COUNT_CLEAR); 141 for (i = 0; i < 2; i++) 142 mt7921_mac_init_band(dev, i); 143 144 dev->mt76.rxfilter = mt76_rr(dev, MT_WF_RFCR(0)); 145 146 return mt76_connac_mcu_set_rts_thresh(&dev->mt76, 0x92b, 0); 147} |
148EXPORT_SYMBOL_GPL(mt7921_mac_init); |
|
148 149static int __mt7921_init_hardware(struct mt7921_dev *dev) 150{ 151 struct mt76_dev *mdev = &dev->mt76; 152 int ret; 153 154 /* force firmware operation mode into normal state, 155 * which should be set before firmware download stage. --- 124 unchanged lines hidden (view full) --- 280 ret = mt76_connac_mcu_set_deep_sleep(&dev->mt76, dev->pm.ds_enable); 281 if (ret) 282 return ret; 283 284 dev->hw_init_done = true; 285 286 return 0; 287} | 149 150static int __mt7921_init_hardware(struct mt7921_dev *dev) 151{ 152 struct mt76_dev *mdev = &dev->mt76; 153 int ret; 154 155 /* force firmware operation mode into normal state, 156 * which should be set before firmware download stage. --- 124 unchanged lines hidden (view full) --- 281 ret = mt76_connac_mcu_set_deep_sleep(&dev->mt76, dev->pm.ds_enable); 282 if (ret) 283 return ret; 284 285 dev->hw_init_done = true; 286 287 return 0; 288} |
289EXPORT_SYMBOL_GPL(mt7921_register_device); |
|