mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt76: move tx hw data queues in mt76_phy
Move hw data queues in mt76_phy from mt76_dev since mt7915 supports per phy hw queues in dbdc mode Signed-off-by: Lorenzo Bianconi <[email protected]> Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
committed by
Felix Fietkau
parent
ccd62467d0
commit
2e217fb9e9
@@ -815,7 +815,7 @@ static void mt76u_status_worker(struct mt76_worker *w)
|
||||
int i;
|
||||
|
||||
for (i = 0; i < IEEE80211_NUM_ACS; i++) {
|
||||
q = dev->q_tx[i];
|
||||
q = dev->phy.q_tx[i];
|
||||
|
||||
while (q->queued > 0) {
|
||||
if (!q->entry[q->tail].done)
|
||||
@@ -983,7 +983,7 @@ static int mt76u_alloc_tx(struct mt76_dev *dev)
|
||||
|
||||
for (i = 0; i <= MT_TXQ_PSD; i++) {
|
||||
if (i >= IEEE80211_NUM_ACS) {
|
||||
dev->q_tx[i] = dev->q_tx[0];
|
||||
dev->phy.q_tx[i] = dev->phy.q_tx[0];
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -995,7 +995,7 @@ static int mt76u_alloc_tx(struct mt76_dev *dev)
|
||||
q->hw_idx = mt76u_ac_to_hwq(dev, i);
|
||||
q->qid = i;
|
||||
|
||||
dev->q_tx[i] = q;
|
||||
dev->phy.q_tx[i] = q;
|
||||
|
||||
q->entry = devm_kcalloc(dev->dev,
|
||||
MT_NUM_TX_ENTRIES, sizeof(*q->entry),
|
||||
@@ -1024,7 +1024,7 @@ static void mt76u_free_tx(struct mt76_dev *dev)
|
||||
struct mt76_queue *q;
|
||||
int j;
|
||||
|
||||
q = dev->q_tx[i];
|
||||
q = dev->phy.q_tx[i];
|
||||
if (!q)
|
||||
continue;
|
||||
|
||||
@@ -1052,7 +1052,7 @@ void mt76u_stop_tx(struct mt76_dev *dev)
|
||||
dev_err(dev->dev, "timed out waiting for pending tx\n");
|
||||
|
||||
for (i = 0; i < IEEE80211_NUM_ACS; i++) {
|
||||
q = dev->q_tx[i];
|
||||
q = dev->phy.q_tx[i];
|
||||
if (!q)
|
||||
continue;
|
||||
|
||||
@@ -1064,7 +1064,7 @@ void mt76u_stop_tx(struct mt76_dev *dev)
|
||||
* will fail to submit urb, cleanup those skb's manually.
|
||||
*/
|
||||
for (i = 0; i < IEEE80211_NUM_ACS; i++) {
|
||||
q = dev->q_tx[i];
|
||||
q = dev->phy.q_tx[i];
|
||||
if (!q)
|
||||
continue;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user