aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/sfc
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/sfc')
-rw-r--r--drivers/net/sfc/falcon.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/sfc/falcon.c b/drivers/net/sfc/falcon.c
index 70c681ecdabe..3a5289fe8d1d 100644
--- a/drivers/net/sfc/falcon.c
+++ b/drivers/net/sfc/falcon.c
@@ -1953,8 +1953,10 @@ int falcon_dma_stats(struct efx_nic *efx, unsigned int done_offset)
1953 1953
1954 /* Wait for transfer to complete */ 1954 /* Wait for transfer to complete */
1955 for (i = 0; i < 400; i++) { 1955 for (i = 0; i < 400; i++) {
1956 if (*(volatile u32 *)dma_done == FALCON_STATS_DONE) 1956 if (*(volatile u32 *)dma_done == FALCON_STATS_DONE) {
1957 rmb(); /* Ensure the stats are valid. */
1957 return 0; 1958 return 0;
1959 }
1958 udelay(10); 1960 udelay(10);
1959 } 1961 }
1960 1962