aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/wil6210/txrx.c
diff options
context:
space:
mode:
authorVladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>2014-02-27 09:20:51 -0500
committerJohn W. Linville <linville@tuxdriver.com>2014-02-28 14:33:35 -0500
commit93ae6d49e2ddd05431184779d8ace0bc189a597b (patch)
tree538ad5fabb1e3a7f5338bf6fccedba18ddaf9885 /drivers/net/wireless/ath/wil6210/txrx.c
parent91886b0b7d65b8f5e0f6b2b7de90cd714d41844e (diff)
wil6210: Fill vring2cid_tid table early
Need to fill translation table before calling WMI with WMI_VRING_CFG_CMDID since firmware may generate events during this call; and events need translation table filled to be properly dispatched Signed-off-by: Vladimir Kondratiev <qca_vkondrat@qca.qualcomm.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/wil6210/txrx.c')
-rw-r--r--drivers/net/wireless/ath/wil6210/txrx.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/wireless/ath/wil6210/txrx.c b/drivers/net/wireless/ath/wil6210/txrx.c
index baced1bca04c..9b4388b842a2 100644
--- a/drivers/net/wireless/ath/wil6210/txrx.c
+++ b/drivers/net/wireless/ath/wil6210/txrx.c
@@ -610,6 +610,9 @@ int wil_vring_init_tx(struct wil6210_priv *wil, int id, int size,
610 if (rc) 610 if (rc)
611 goto out; 611 goto out;
612 612
613 wil->vring2cid_tid[id][0] = cid;
614 wil->vring2cid_tid[id][1] = tid;
615
613 cmd.vring_cfg.tx_sw_ring.ring_mem_base = cpu_to_le64(vring->pa); 616 cmd.vring_cfg.tx_sw_ring.ring_mem_base = cpu_to_le64(vring->pa);
614 617
615 rc = wmi_call(wil, WMI_VRING_CFG_CMDID, &cmd, sizeof(cmd), 618 rc = wmi_call(wil, WMI_VRING_CFG_CMDID, &cmd, sizeof(cmd),
@@ -625,9 +628,6 @@ int wil_vring_init_tx(struct wil6210_priv *wil, int id, int size,
625 } 628 }
626 vring->hwtail = le32_to_cpu(reply.cmd.tx_vring_tail_ptr); 629 vring->hwtail = le32_to_cpu(reply.cmd.tx_vring_tail_ptr);
627 630
628 wil->vring2cid_tid[id][0] = cid;
629 wil->vring2cid_tid[id][1] = tid;
630
631 return 0; 631 return 0;
632 out_free: 632 out_free:
633 wil_vring_free(wil, vring, 1); 633 wil_vring_free(wil, vring, 1);