mcu.c (f0ff5d3aa648128d0fc8055df072551d0d89c88d) | mcu.c (16d98b548365fcd6fc3fe2e1ae73c9e3cc5ee43d) |
---|---|
1// SPDX-License-Identifier: ISC 2/* Copyright (C) 2020 MediaTek Inc. */ 3 4#include <linux/firmware.h> 5#include <linux/fs.h> 6#include "mt7921.h" 7#include "mt7921_trace.h" 8#include "mcu.h" --- 892 unchanged lines hidden (view full) --- 901int mt7921_run_firmware(struct mt7921_dev *dev) 902{ 903 int err; 904 905 err = mt7921_load_firmware(dev); 906 if (err) 907 return err; 908 | 1// SPDX-License-Identifier: ISC 2/* Copyright (C) 2020 MediaTek Inc. */ 3 4#include <linux/firmware.h> 5#include <linux/fs.h> 6#include "mt7921.h" 7#include "mt7921_trace.h" 8#include "mcu.h" --- 892 unchanged lines hidden (view full) --- 901int mt7921_run_firmware(struct mt7921_dev *dev) 902{ 903 int err; 904 905 err = mt7921_load_firmware(dev); 906 if (err) 907 return err; 908 |
909 set_bit(MT76_STATE_MCU_RUNNING, &dev->mphy.state); 910 mt7921_mcu_fw_log_2_host(dev, 1); | 909 err = mt76_connac_mcu_get_nic_capability(&dev->mphy); 910 if (err) 911 return err; |
911 | 912 |
912 return mt76_connac_mcu_get_nic_capability(&dev->mphy); | 913 set_bit(MT76_STATE_MCU_RUNNING, &dev->mphy.state); 914 return mt7921_mcu_fw_log_2_host(dev, 1); |
913} 914EXPORT_SYMBOL_GPL(mt7921_run_firmware); 915 916void mt7921_mcu_exit(struct mt7921_dev *dev) 917{ 918 skb_queue_purge(&dev->mt76.mcu.res_q); 919} 920EXPORT_SYMBOL_GPL(mt7921_mcu_exit); --- 433 unchanged lines hidden --- | 915} 916EXPORT_SYMBOL_GPL(mt7921_run_firmware); 917 918void mt7921_mcu_exit(struct mt7921_dev *dev) 919{ 920 skb_queue_purge(&dev->mt76.mcu.res_q); 921} 922EXPORT_SYMBOL_GPL(mt7921_mcu_exit); --- 433 unchanged lines hidden --- |