OSDN Git Service

mt76: use udelay instead of usleep_range in mt76x2_mac_stop
[uclinux-h8/linux.git] / drivers / net / wireless / mediatek / mt76 / mt76x2_init.c
index ec17156..79ab936 100644 (file)
@@ -376,7 +376,7 @@ void mt76x2_mac_stop(struct mt76x2_dev *dev, bool force)
                if ((mt76_rr(dev, MT_MAC_STATUS) &
                     (MT_MAC_STATUS_RX | MT_MAC_STATUS_TX)) ||
                    mt76_rr(dev, MT_BBP(IBI, 12))) {
-                       usleep_range(10, 20);
+                       udelay(1);
                        continue;
                }