From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Mon, 3 Mar 2014 15:24:03 +0100 Subject: [U-Boot] [PATCH] net: asix: don't pad odd-length TX packets In-Reply-To: <20140303141434.GT3327@book.gsilab.sittig.org> References: <1393532822-28217-1-git-send-email-swarren@wwwdotorg.org> <201402281154.39505.marex@denx.de> <20140303141434.GT3327@book.gsilab.sittig.org> Message-ID: <201403031524.03276.marex@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Monday, March 03, 2014 at 03:14:34 PM, Gerhard Sittig wrote: > On Fri, Feb 28, 2014 at 11:54 +0100, Marek Vasut wrote: > > On Thursday, February 27, 2014 at 09:38:48 PM, Simon Glass wrote: > > > Hi Stephen, > > > > > > On 27 February 2014 13:27, Stephen Warren wrote: > > > > From: Stephen Warren > > > > > > > > For Ethernet/USB RX packets, the ASIX HW pads odd-sized packets so > > > > that they have an even size. Currently, asix_recv() does remove this > > > > padding, and asic_send() adds equivalent padding in the TX path. > > > > However, the HW does not appear to need this packing for TX packets > > > > in practical testing with "ASIX Elec. Corp. AX88x72A 000001" Vendor: > > > > 0x0b95 Product 0x7720 Version 0.1. The Linux kernel does no such > > > > padding for the TX path. > > > > > > > > Remove the padding from the TX path: > > > > > > > > * For consistency with the Linux kernel. > > > > * NVIDIA has a Tegra simulator which validates that the length of USB > > > > > > > > packets sent to an ASIX device matches the packet length value > > > > inside the packet data. Having U-Boot and the kernel do the same > > > > thing when creating the TX packets simplifies the simulator's > > > > validation. > > > > > > > > Cc: Lucas Stach > > > > Cc: Marek Vasut > > > > Cc: Simon Glass > > > > Signed-off-by: Stephen Warren > > > > > > My notes indicate I added this due to a problem I had at the time with > > > bootp. However, since you have tested it, perhaps the root cause was > > > somewhere else. > > > > > > Acked-by: Simon Glass > > > > Tested on two different ASIX dongles: > > > > 0x2001:0x3c05 ; DUB-E100 ; D-Link Corporation > > 0x0b95:0x7720 ; ZoWii ; Zoltan Tech > > > > Acked-by: Marek Vasut > > Tested-by: Marek Vasut > > Tested with TFTP over a "Logilink UA0144" dongle ('usb info' says > "ASIX Elec. Corp. AX88772B 000001", vendor 0x0b95, prod 0x772b) > and "Edimax EU-4208" ("ASIX Elec. Corp. AX88772B 0E62D5", 0x0b95, > 0x772b). > > Tested-by: Gerhard Sittig Putting Joe back on CC. Joe, can you please pick this one ? Thanks! Best regards, Marek Vasut