diff options
author | Lorenzo Bianconi <lorenzo.bianconi@redhat.com> | 2018-09-10 00:57:57 +0300 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2018-09-12 14:16:50 +0300 |
commit | 26909cdcb4a2c30a71080078d98d20557ea646e3 (patch) | |
tree | 3eb550266442df7cc4921ebb1dddd4fe079c4158 /mmio.c | |
parent | dbc444220615a1bb4b28edd06932a66ce3542257 (diff) |
mt76: introduce mmio data structure in mt76_dev
Introduce mt76_mmio data structure in mt76_dev and
move mt76x2_mcu in mt76_mmio. This is a preliminary
patch to unify mcu code between mt76x02{e,u} drivers
Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@redhat.com>
Diffstat (limited to 'mmio.c')
-rw-r--r-- | mmio.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -57,5 +57,9 @@ void mt76_mmio_init(struct mt76_dev *dev, void __iomem *regs) dev->bus = &mt76_mmio_ops; dev->regs = regs; + + skb_queue_head_init(&dev->mmio.mcu.res_q); + init_waitqueue_head(&dev->mmio.mcu.wait); + mutex_init(&dev->mmio.mcu.mutex); } EXPORT_SYMBOL_GPL(mt76_mmio_init); |