projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de67156
)
NET: nps_enet: TX done acknowledge.
author
Noam Camus
<noamc@ezchip.com>
Thu, 20 Aug 2015 05:00:04 +0000
(08:00 +0300)
committer
David 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
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/ethernet/ezchip/nps_enet.c
b/drivers/net/ethernet/ezchip/nps_enet.c
index e553e6aa0e744160c8af8f62f65e3671511593d1..69b9129357fd953fd975f33c5a5e74fdd53e4e13 100644
(file)
--- a/
drivers/net/ethernet/ezchip/nps_enet.c
+++ b/
drivers/net/ethernet/ezchip/nps_enet.c
@@
-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++;