diff options
author | kaloz <kaloz@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2009-06-23 21:04:37 +0000 |
---|---|---|
committer | kaloz <kaloz@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2009-06-23 21:04:37 +0000 |
commit | 343c185b7d7383b1f5b5144e837045af28afc42b (patch) | |
tree | 6d3382662fa3ad4119d3a3cda223c53949ca4894 /target/linux/coldfire/patches/090-m547x_8x_fec_rxfifo_check.patch | |
parent | 145f9652a593d19b149d2f25febd4aa0c1ab57d1 (diff) |
use broken-out patches for the coldfire to make it easier to follow differences against the bsp
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16547 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/coldfire/patches/090-m547x_8x_fec_rxfifo_check.patch')
-rw-r--r-- | target/linux/coldfire/patches/090-m547x_8x_fec_rxfifo_check.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/target/linux/coldfire/patches/090-m547x_8x_fec_rxfifo_check.patch b/target/linux/coldfire/patches/090-m547x_8x_fec_rxfifo_check.patch new file mode 100644 index 0000000000..85f89c16d7 --- /dev/null +++ b/target/linux/coldfire/patches/090-m547x_8x_fec_rxfifo_check.patch @@ -0,0 +1,27 @@ +Re-enable rx fifo buffer checks. + +LTIBName: linux-2.6.25-m547x-8x-fec-rxfifo-check +Acked-by: Kurt Mahan <kmahan@freescale.com> +Signed-off-by: Shrek Wu <b16972@freescale.com> +--- a/drivers/net/fec/fec.c ++++ b/drivers/net/fec/fec.c +@@ -941,9 +941,9 @@ void fec_interrupt_fec_rx_handler(struct + { + struct fec_priv *fp = netdev_priv(dev); + struct sk_buff *skb; ++ int i; + + fp->fecpriv_rxflag = 1; +-/* + // Some buffers can be missed + if(!(fp->fecpriv_rxdesc[fp->fecpriv_current_rx].statCtrl & MCD_FEC_END_FRAME)) + { +@@ -961,7 +961,7 @@ void fec_interrupt_fec_rx_handler(struct + return; + } + } +-*/ ++ + 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) { + if( (fp->fecpriv_rxdesc[fp->fecpriv_current_rx].length <= FEC_MAXBUF_SIZE) && + (fp->fecpriv_rxdesc[fp->fecpriv_current_rx].length > 4)) { /* --tym-- */ |