summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorSammy He <r62914@freescale.com>2009-11-20 17:47:39 +0800
committerSammy He <r62914@freescale.com>2009-11-20 17:47:39 +0800
commit74d5620b3daf9125366489d979a0c36d6f752291 (patch)
treee75419ad38b866b6b9e0d71647a42c8759b72bd2 /drivers
parent1701c3caa7ed7d183a57301f6513c1f5fb4102cd (diff)
downloadu-boot-imx-74d5620b3daf9125366489d979a0c36d6f752291.zip
u-boot-imx-74d5620b3daf9125366489d979a0c36d6f752291.tar.gz
u-boot-imx-74d5620b3daf9125366489d979a0c36d6f752291.tar.bz2
ENGR00118647 Fix smc911x receive packet length not set correctly
Fix smc911x receive packet length not set correctly issue. This caused MX25 tftp timeout sometimes. Signed-off-by: Sammy He <r62914@freescale.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/smc911x.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/smc911x.c b/drivers/net/smc911x.c
index c50758e..adcb9c9 100644
--- a/drivers/net/smc911x.c
+++ b/drivers/net/smc911x.c
@@ -220,7 +220,7 @@ static int smc911x_rx(struct eth_device *dev)
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);