usb.c (56054087bb17f98d62419acc3d0e5afc9544a4fb) | usb.c (fc6ee71a2a8f2d183724e3f97762e93c5102425c) |
---|---|
1// SPDX-License-Identifier: ISC 2/* Copyright (C) 2022 MediaTek Inc. 3 * 4 * Author: Lorenzo Bianconi <lorenzo@kernel.org> 5 */ 6 7#include <linux/kernel.h> 8#include <linux/module.h> --- 111 unchanged lines hidden (view full) --- 120 dev_kfree_skb(skb); 121 122 return ret; 123} 124 125static int mt7921u_mcu_init(struct mt7921_dev *dev) 126{ 127 static const struct mt76_mcu_ops mcu_ops = { | 1// SPDX-License-Identifier: ISC 2/* Copyright (C) 2022 MediaTek Inc. 3 * 4 * Author: Lorenzo Bianconi <lorenzo@kernel.org> 5 */ 6 7#include <linux/kernel.h> 8#include <linux/module.h> --- 111 unchanged lines hidden (view full) --- 120 dev_kfree_skb(skb); 121 122 return ret; 123} 124 125static int mt7921u_mcu_init(struct mt7921_dev *dev) 126{ 127 static const struct mt76_mcu_ops mcu_ops = { |
128 .headroom = MT_SDIO_HDR_SIZE + sizeof(struct mt7921_mcu_txd), | 128 .headroom = MT_SDIO_HDR_SIZE + 129 sizeof(struct mt76_connac2_mcu_txd), |
129 .tailroom = MT_USB_TAIL_SIZE, 130 .mcu_skb_send_msg = mt7921u_mcu_send_message, 131 .mcu_parse_response = mt7921_mcu_parse_response, 132 .mcu_restart = mt76_connac_mcu_restart, 133 }; 134 int ret; 135 136 dev->mt76.mcu_ops = &mcu_ops; --- 230 unchanged lines hidden --- | 130 .tailroom = MT_USB_TAIL_SIZE, 131 .mcu_skb_send_msg = mt7921u_mcu_send_message, 132 .mcu_parse_response = mt7921_mcu_parse_response, 133 .mcu_restart = mt76_connac_mcu_restart, 134 }; 135 int ret; 136 137 dev->mt76.mcu_ops = &mcu_ops; --- 230 unchanged lines hidden --- |