All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] smc911x driver frame alignment patch
@ 2010-04-21  7:56 Valentin Yakovenkov
  2010-04-21 17:52 ` Ben Warren
  0 siblings, 1 reply; 7+ messages in thread
From: Valentin Yakovenkov @ 2010-04-21  7:56 UTC (permalink / raw)
  To: u-boot

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@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 

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-04-22 20:21 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-21  7:56 [U-Boot] [PATCH] smc911x driver frame alignment patch Valentin Yakovenkov
2010-04-21 17:52 ` Ben Warren
2010-04-21 19:52   ` Mike Frysinger
2010-04-22 19:12     ` Valentin Yakovenkov
2010-04-22 19:43       ` Mike Frysinger
2010-04-22 19:53         ` Valentin Yakovenkov
2010-04-22 20:21           ` Ben Warren

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.