From ff1e057364adbca3ab9b8be0237ce2183adbc53c Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Wed, 3 Feb 2016 10:55:51 -0600 Subject: [PATCH] Missed one EMAC driver in the last commit --- drivers/net/enc28j60.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/net/enc28j60.c b/drivers/net/enc28j60.c index 842d18cc2a..db3bbb2de5 100644 --- a/drivers/net/enc28j60.c +++ b/drivers/net/enc28j60.c @@ -1279,6 +1279,14 @@ static void enc_txif(FAR struct enc_driver_s *priv) wd_cancel(priv->txtimeout); + /* Then make sure that the TX poll timer is running (if it is already + * running, the following would restart it). This is necessary to + * avoid certain race conditions where the polling sequence can be + * interrupted. + */ + + (void)wd_start(priv->txpoll, ENC_WDDELAY, enc_polltimer, 1, arg); + /* Then poll uIP for new XMIT data */ (void)devif_poll(&priv->dev, enc_txpoll);