]> git.hungrycats.org Git - linux/commit
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>
Sat, 12 May 2012 16:32:17 +0000 (09:32 -0700)
commit7a519993790a09fd6410bdeb0a049e96d11a2324
tree5927e234b22301e50fdd420561ae56cb98d806c2
parentf4fad1b66f36116d8ac4f58c357ea077179c8e84
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