mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt76: mt7915: rely on mt76_connac_mcu_start_firmware
Rely on mt76_connac_mcu_start_firmware and remove duplicated code. Signed-off-by: Lorenzo Bianconi <[email protected]> Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
committed by
Felix Fietkau
parent
dcf408ff8a
commit
77b2a8601f
+1
-16
@@ -1941,21 +1941,6 @@ out:
|
||||
MCU_EXT_CMD(BSS_INFO_UPDATE), true);
|
||||
}
|
||||
|
||||
static int mt7915_mcu_start_firmware(struct mt7915_dev *dev, u32 addr,
|
||||
u32 option)
|
||||
{
|
||||
struct {
|
||||
__le32 option;
|
||||
__le32 addr;
|
||||
} req = {
|
||||
.option = cpu_to_le32(option),
|
||||
.addr = cpu_to_le32(addr),
|
||||
};
|
||||
|
||||
return mt76_mcu_send_msg(&dev->mt76, MCU_CMD(FW_START_REQ), &req,
|
||||
sizeof(req), true);
|
||||
}
|
||||
|
||||
static int mt7915_mcu_restart(struct mt76_dev *dev)
|
||||
{
|
||||
struct {
|
||||
@@ -2175,7 +2160,7 @@ mt7915_mcu_send_ram_firmware(struct mt7915_dev *dev,
|
||||
if (is_wa)
|
||||
option |= FW_START_WORKING_PDA_CR4;
|
||||
|
||||
return mt7915_mcu_start_firmware(dev, override, option);
|
||||
return mt76_connac_mcu_start_firmware(&dev->mt76, override, option);
|
||||
}
|
||||
|
||||
static int mt7915_load_ram(struct mt7915_dev *dev)
|
||||
|
||||
Reference in New Issue
Block a user