asix: Fix tx transfer padding for full-speed USB
authorIngo van Lil <inguin@gmx.de>
Mon, 23 Apr 2012 22:05:38 +0000 (22:05 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 21 May 2012 16:39:59 +0000 (09:39 -0700)
commit5d34eea4758c4946c171bd29a835a0e9a4bcb7ab
tree76975f76f9406dc3fbaf735232ab9c304f8aef0f
parent78d09e08e97051b3824dca8aa5ceaf15d1295ba2
asix: Fix tx transfer padding for full-speed USB

[ Upstream commit 2a5809499e35b53a6044fd34e72b242688b7a862 ]

The asix.c USB Ethernet driver avoids ending a tx transfer with a zero-
length packet by appending a four-byte padding to transfers whose length
is a multiple of maxpacket. However, the hard-coded 512 byte maxpacket
length is valid for high-speed USB only; full-speed USB uses 64 byte
packets.

Signed-off-by: Ingo van Lil <inguin@gmx.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/usb/asix.c