NET: nps_enet: TX done acknowledge.
authorNoam Camus <noamc@ezchip.com>
Thu, 20 Aug 2015 05:00:04 +0000 (08:00 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sun, 23 Aug 2015 23:08:54 +0000 (16:08 -0700)
This is needed for when TX done interrupt is in
"level mode".
For example it is true for some simulators of this device.

Signed-off-by: Noam Camus <noamc@ezchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ezchip/nps_enet.c

index e553e6aa0e744160c8af8f62f65e3671511593d1..69b9129357fd953fd975f33c5a5e74fdd53e4e13 100644 (file)
@@ -150,6 +150,9 @@ static void nps_enet_tx_handler(struct net_device *ndev)
        if (!priv->tx_packet_sent || tx_ctrl.ct)
                return;
 
+       /* Ack Tx ctrl register */
+       nps_enet_reg_set(priv, NPS_ENET_REG_TX_CTL, 0);
+
        /* Check Tx transmit error */
        if (unlikely(tx_ctrl.et)) {
                ndev->stats.tx_errors++;