Merge tag 'tty-6.6-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty
[platform/kernel/linux-starfive.git] / drivers / net / wireless / mediatek / mt76 / dma.c
index 05d9ab3..dc8f4e1 100644 (file)
@@ -93,13 +93,13 @@ __mt76_get_rxwi(struct mt76_dev *dev)
 {
        struct mt76_txwi_cache *t = NULL;
 
-       spin_lock(&dev->wed_lock);
+       spin_lock_bh(&dev->wed_lock);
        if (!list_empty(&dev->rxwi_cache)) {
                t = list_first_entry(&dev->rxwi_cache, struct mt76_txwi_cache,
                                     list);
                list_del(&t->list);
        }
-       spin_unlock(&dev->wed_lock);
+       spin_unlock_bh(&dev->wed_lock);
 
        return t;
 }
@@ -145,9 +145,9 @@ mt76_put_rxwi(struct mt76_dev *dev, struct mt76_txwi_cache *t)
        if (!t)
                return;
 
-       spin_lock(&dev->wed_lock);
+       spin_lock_bh(&dev->wed_lock);
        list_add(&t->list, &dev->rxwi_cache);
-       spin_unlock(&dev->wed_lock);
+       spin_unlock_bh(&dev->wed_lock);
 }
 EXPORT_SYMBOL_GPL(mt76_put_rxwi);