kernel: refresh 2.6.30 patches
[openwrt.git] / target / linux / coldfire / patches / 090-m547x_8x_fec_rxfifo_check.patch
1 Re-enable rx fifo buffer checks.
2
3 LTIBName: linux-2.6.25-m547x-8x-fec-rxfifo-check
4 Acked-by: Kurt Mahan <kmahan@freescale.com>
5 Signed-off-by: Shrek Wu <b16972@freescale.com>
6 --- a/drivers/net/fec/fec.c
7 +++ b/drivers/net/fec/fec.c
8 @@ -941,9 +941,9 @@ void fec_interrupt_fec_rx_handler(struct
9 {
10 struct fec_priv *fp = netdev_priv(dev);
11 struct sk_buff *skb;
12 + int i;
13
14 fp->fecpriv_rxflag = 1;
15 -/*
16 // Some buffers can be missed
17 if(!(fp->fecpriv_rxdesc[fp->fecpriv_current_rx].statCtrl & MCD_FEC_END_FRAME))
18 {
19 @@ -961,7 +961,7 @@ void fec_interrupt_fec_rx_handler(struct
20 return;
21 }
22 }
23 -*/
24 +
25 for (; fp->fecpriv_rxdesc[fp->fecpriv_current_rx].statCtrl & MCD_FEC_END_FRAME; fp->fecpriv_current_rx = (fp->fecpriv_current_rx + 1) & FEC_RX_INDEX_MASK) {
26 if( (fp->fecpriv_rxdesc[fp->fecpriv_current_rx].length <= FEC_MAXBUF_SIZE) &&
27 (fp->fecpriv_rxdesc[fp->fecpriv_current_rx].length > 4)) { /* --tym-- */
This page took 0.043053 seconds and 5 git commands to generate.