mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt76: sdio: remove wake logic in mt76s_process_tx_queue
Similar to mmio/usb code path, remove wake logic in mt76s_process_tx_queue routine Signed-off-by: Lorenzo Bianconi <[email protected]>
This commit is contained in:
committed by
Felix Fietkau
parent
510cb5be1b
commit
34f318a254
@@ -157,7 +157,7 @@ static void mt76s_net_worker(struct mt76_worker *w)
|
||||
|
||||
static int mt76s_process_tx_queue(struct mt76_dev *dev, struct mt76_queue *q)
|
||||
{
|
||||
bool wake, mcu = q == dev->q_mcu[MT_MCUQ_WM];
|
||||
bool mcu = q == dev->q_mcu[MT_MCUQ_WM];
|
||||
struct mt76_queue_entry entry;
|
||||
int nframes = 0;
|
||||
|
||||
@@ -177,21 +177,12 @@ static int mt76s_process_tx_queue(struct mt76_dev *dev, struct mt76_queue *q)
|
||||
nframes++;
|
||||
}
|
||||
|
||||
wake = q->stopped && q->queued < q->ndesc - 8;
|
||||
if (wake)
|
||||
q->stopped = false;
|
||||
|
||||
if (!q->queued)
|
||||
wake_up(&dev->tx_wait);
|
||||
|
||||
if (mcu)
|
||||
goto out;
|
||||
if (!mcu)
|
||||
mt76_txq_schedule(&dev->phy, q->qid);
|
||||
|
||||
mt76_txq_schedule(&dev->phy, q->qid);
|
||||
|
||||
if (wake)
|
||||
ieee80211_wake_queue(dev->hw, q->qid);
|
||||
out:
|
||||
return nframes;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user