net: moxa: clear DESC1 on ndo_start_xmit()
authorJonas Jensen <jonas.jensen@gmail.com>
Mon, 25 Aug 2014 14:22:11 +0000 (16:22 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 26 Aug 2014 00:25:38 +0000 (17:25 -0700)
commitb853f31940c84cce6a3f5cb4f529b029906ee69c
treef2a3286e18ddd1a31e1a4a6e6cd8d451b9db3b32
parentdb115037bb57cdfe97078b13da762213f7980e81
net: moxa: clear DESC1 on ndo_start_xmit()

TX buffer length is not cleared on ndo_start_xmit().
Failing to do so can bug/hang the controller and
cause TX interrupts to stop altogether.

Remove the readl() and compute a new value for DESC1.

Addresses https://bugzilla.kernel.org/show_bug.cgi?id=69031

Signed-off-by: Jonas Jensen <jonas.jensen@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/moxa/moxart_ether.c