aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/enic/vnic_rq.c
diff options
context:
space:
mode:
authorVasanthy Kolluri <vkolluri@cisco.com>2010-03-18 12:19:49 -0400
committerDavid S. Miller <davem@davemloft.net>2010-03-19 00:22:48 -0400
commitb6d24eb663cdf4af9c08b37ad2e31056c5eb2561 (patch)
tree74feb13f2f56a6e58660553a935498614f401a55 /drivers/net/enic/vnic_rq.c
parenta55a603dae47a1ea4fbfad3a3a428ea7a0900ab6 (diff)
enic: Bug Fix: Fix timeout for hardware Tx and Rx queue disable operations
The timeout for hardware Tx and Rx queue disable operations is increased to work-around an erratum for "unnamed" chipset where a DMA completion may take upto 10ms. We have to wait atleast this long for hardware to signal that Tx and Rx queues are quiesced. Signed-off-by: Scott Feldman <scofeldm@cisco.com> Signed-off-by: Vasanthy Kolluri <vkolluri@cisco.com> Signed-off-by: Roopa Prabhu <roprabhu@cisco.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/enic/vnic_rq.c')
-rw-r--r--drivers/net/enic/vnic_rq.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/enic/vnic_rq.c b/drivers/net/enic/vnic_rq.c
index 75583978a5e5..7bcd90373487 100644
--- a/drivers/net/enic/vnic_rq.c
+++ b/drivers/net/enic/vnic_rq.c
@@ -167,10 +167,10 @@ int vnic_rq_disable(struct vnic_rq *rq)
167 iowrite32(0, &rq->ctrl->enable); 167 iowrite32(0, &rq->ctrl->enable);
168 168
169 /* Wait for HW to ACK disable request */ 169 /* Wait for HW to ACK disable request */
170 for (wait = 0; wait < 100; wait++) { 170 for (wait = 0; wait < 1000; wait++) {
171 if (!(ioread32(&rq->ctrl->running))) 171 if (!(ioread32(&rq->ctrl->running)))
172 return 0; 172 return 0;
173 udelay(1); 173 udelay(10);
174 } 174 }
175 175
176 printk(KERN_ERR "Failed to disable RQ[%d]\n", rq->index); 176 printk(KERN_ERR "Failed to disable RQ[%d]\n", rq->index);