mt76: move waiting and locking out of mcu_ops->mcu_skb_send_msg
authorFelix Fietkau <nbd@nbd.name>
Wed, 30 Sep 2020 02:35:11 +0000 (04:35 +0200)
committerFelix Fietkau <nbd@nbd.name>
Fri, 4 Dec 2020 12:46:15 +0000 (13:46 +0100)
commite452c6eb55fbfd21eef6e95f63a0265655d5b677
treebf4d4b241691f580790abc6363eeb7a713055312
parent96a607b643e2d81351a9de584928928d3e54f395
mt76: move waiting and locking out of mcu_ops->mcu_skb_send_msg

This removes some code duplication and prepares the code for making
the MCU API more flexible

Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mcu.c
drivers/net/wireless/mediatek/mt76/mt76.h
drivers/net/wireless/mediatek/mt76/mt7615/mcu.c
drivers/net/wireless/mediatek/mt76/mt7615/mt7615.h
drivers/net/wireless/mediatek/mt76/mt7615/sdio_mcu.c
drivers/net/wireless/mediatek/mt76/mt7615/usb_mcu.c
drivers/net/wireless/mediatek/mt76/mt7915/mcu.c