Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3d99b74a authored by Noam Camus's avatar Noam Camus Committed by David S. Miller
Browse files

NET: nps_enet: TX done acknowledge.



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: default avatarNoam Camus <noamc@ezchip.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent de671567
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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++;