[U-Boot] [PATCH] smc911x driver frame alignment patch
Valentin Yakovenkov
yakovenkov at niistt.ru
Wed Apr 21 09:56:22 CEST 2010
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 <yakovenkov at niistt.ru>
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
More information about the U-Boot
mailing list