mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt76: usb: move mt76x02 mcu code in mt76x02-usb module
Introduce mt76x02_usb_mcu.c in order to contain mt76x02u mcu related code. Add mt76x02-usb module as a container for mt76x02 usb code. 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
f5590b0bf3
commit
d2773ceed2
@@ -109,6 +109,7 @@ u32 mt76u_rr(struct mt76_dev *dev, u32 addr)
|
||||
|
||||
return ret;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(mt76u_rr);
|
||||
|
||||
/* should be called with usb_ctrl_mtx locked */
|
||||
static void __mt76u_wr(struct mt76_dev *dev, u32 addr, u32 val)
|
||||
@@ -140,6 +141,7 @@ void mt76u_wr(struct mt76_dev *dev, u32 addr, u32 val)
|
||||
__mt76u_wr(dev, addr, val);
|
||||
mutex_unlock(&dev->usb.usb_ctrl_mtx);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(mt76u_wr);
|
||||
|
||||
static u32 mt76u_rmw(struct mt76_dev *dev, u32 addr,
|
||||
u32 mask, u32 val)
|
||||
@@ -892,7 +894,6 @@ int mt76u_init(struct mt76_dev *dev,
|
||||
mutex_init(&usb->usb_ctrl_mtx);
|
||||
dev->bus = &mt76u_ops;
|
||||
dev->queue_ops = &usb_queue_ops;
|
||||
mt76u_init_mcu_ops(dev);
|
||||
|
||||
return mt76u_set_endpoints(intf, usb);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user