mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt76: usb: move mt76u_skb_dma_info in mt76x02_usb_core.c
Move mt76u_skb_dma_info routine in mt76x02-usb module and rename it in mt76x02u_skb_dma_info. Moreover move mt76x02u_set_txinfo in mt76x02_usb_core.c. This is a preliminary patch to move MT_TXD_INFO, MT_MCU_MSG and MT_RX_FCE_INFO defs in mt76x02-lib module since other chipsets (e.g. mt7603) use different dma definitions Acked-by: Stanislaw Gruszka <[email protected]> Signed-off-by: Lorenzo Bianconi <[email protected]>
This commit is contained in:
committed by
Felix Fietkau
parent
d2773ceed2
commit
6337ffbe07
+2
-1
@@ -19,6 +19,7 @@
|
||||
#include "mt76.h"
|
||||
#include "dma.h"
|
||||
#include "mt76x02_mcu.h"
|
||||
#include "mt76x02_usb.h"
|
||||
|
||||
#define MT_CMD_HDR_LEN 4
|
||||
|
||||
@@ -144,7 +145,7 @@ __mt76x02u_mcu_send_msg(struct mt76_dev *dev, struct sk_buff *skb,
|
||||
info = FIELD_PREP(MT_MCU_MSG_CMD_SEQ, seq) |
|
||||
FIELD_PREP(MT_MCU_MSG_CMD_TYPE, cmd) |
|
||||
MT_MCU_MSG_TYPE_CMD;
|
||||
ret = mt76u_skb_dma_info(skb, CPU_TX_PORT, info);
|
||||
ret = mt76x02u_skb_dma_info(skb, CPU_TX_PORT, info);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user