]> git.karo-electronics.de Git - karo-tx-uboot.git/blob - patches/0049-ENGR00118647-Fix-smc911x-receive-packet-length-not-s.patch
imported Ka-Ro specific additions to U-Boot 2009.08 for TX28
[karo-tx-uboot.git] / patches / 0049-ENGR00118647-Fix-smc911x-receive-packet-length-not-s.patch
1 From 74d5620b3daf9125366489d979a0c36d6f752291 Mon Sep 17 00:00:00 2001
2 From: Sammy He <r62914@freescale.com>
3 Date: Fri, 20 Nov 2009 17:47:39 +0800
4 Subject: [PATCH] ENGR00118647 Fix smc911x receive packet length not set correctly
5
6 Fix smc911x receive packet length not set correctly issue. This
7 caused MX25 tftp timeout sometimes.
8
9 Signed-off-by: Sammy He <r62914@freescale.com>
10 ---
11  drivers/net/smc911x.c |    2 +-
12  1 files changed, 1 insertions(+), 1 deletions(-)
13
14 diff --git a/drivers/net/smc911x.c b/drivers/net/smc911x.c
15 index c50758e..adcb9c9 100644
16 --- a/drivers/net/smc911x.c
17 +++ b/drivers/net/smc911x.c
18 @@ -220,7 +220,7 @@ static int smc911x_rx(struct eth_device *dev)
19  
20                 smc911x_reg_write(dev, RX_CFG, 0);
21  
22 -               tmplen = (pktlen + 2+ 3) / 4;
23 +               tmplen = (pktlen + 3) / 4;
24                 while (tmplen--)
25                         *data++ = pkt_data_pull(dev, RX_DATA_FIFO);
26  
27 -- 
28 1.5.4.4
29