From: Peter Korsgaard Date: Mon, 16 Dec 2013 10:35:35 +0000 (+0100) Subject: dm9601: work around tx fifo sync issue on dm962x X-Git-Tag: v3.13-rc7~13^2~34 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4263c86dca5198da6bd3ad826d0b2304fbe25776;p=pandora-kernel.git dm9601: work around tx fifo sync issue on dm962x Certain dm962x revisions contain an bug, where if a USB bulk transfer retry (E.G. if bulk crc mismatch) happens right after a transfer with odd or maxpacket length, the internal tx hardware fifo gets out of sync causing the interface to stop working. Work around it by adding up to 3 bytes of padding to ensure this situation cannot trigger. This workaround also means we never pass multiple-of-maxpacket size skb's to usbnet, so the length adjustment to handle usbnet's padding of those can be removed. Cc: Reported-by: Joseph Chang Signed-off-by: Peter Korsgaard Signed-off-by: David S. Miller --- Reading git-diff-tree failed