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)
committerDavid S. Miller <davem@davemloft.net>
Tue, 24 Apr 2012 08:11:34 +0000 (04:11 -0400)
commit2a5809499e35b53a6044fd34e72b242688b7a862
tree137a4956069215c6163f999c19f9c3c9fa5d1a1e
parent1ab8be4a14409c55050db69271631afebac29b5a
asix: Fix tx transfer padding for full-speed USB

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>
drivers/net/usb/asix.c