diff options
author | Sammy He <r62914@freescale.com> | 2009-11-20 17:47:39 +0800 |
---|---|---|
committer | Sammy He <r62914@freescale.com> | 2009-11-20 17:47:39 +0800 |
commit | 74d5620b3daf9125366489d979a0c36d6f752291 (patch) | |
tree | e75419ad38b866b6b9e0d71647a42c8759b72bd2 /drivers | |
parent | 1701c3caa7ed7d183a57301f6513c1f5fb4102cd (diff) | |
download | u-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.c | 2 |
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); |