From: Valentin Yakovenkov Date: Wed, 21 Apr 2010 11:56:22 +0400 Subject: [U-Boot] [PATCH] smc911x driver frame alignment patch Message-ID: <4BCEAFA6.8010605@niistt.ru> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Wrong alignment in smc911x driver when reading a frame from fifo. Neither smc911x chip nor U-Boot doesn't use IP-alignment, so we don't need to add anything here. Signed-off-by: Valentin Yakovenkov diff -r 7dc8ff189175 a/drivers/net/smc911x.c --- a/drivers/net/smc911x.c Mon Mar 29 11:08:55 2010 +0400 +++ b/drivers/net/smc911x.c Mon Apr 19 10:46:02 2010 +0400 @@ -220,7 +220,7 @@ smc911x_reg_write(dev, RX_CFG, 0); - tmplen = (pktlen + 2+ 3) / 4; + tmplen = (pktlen + 3) / 4; while (tmplen--) *data++ = pkt_data_pull(dev, RX_DATA_FIFO); -- WBR, Valentin CJSC "NII STT", Russia, Smolensk http://www.niistt.ru -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 3609 bytes Desc: S/MIME Cryptographic Signature Url : http://lists.denx.de/pipermail/u-boot/attachments/20100421/65da43af/attachment.bin