diff options
author | Troy Kisky <troy.kisky@boundarydevices.com> | 2012-12-01 14:05:17 -0700 |
---|---|---|
committer | Eric Nelson <eric.nelson@boundarydevices.com> | 2013-09-03 14:06:24 -0700 |
commit | 49fe4550243cd04f4f734dcc56bd262628cdc9dc (patch) | |
tree | 7ac459240693c08434002f99fb0d74d1ca820217 /drivers | |
parent | a57d225f7f838112587544f87e33063763419072 (diff) |
fec: stop the "rcv is not +last, " error messages
Setting the FTRL register will stop the fec from
trying to use multiple receive buffers.
Signed-off-by: Troy Kisky <troy.kisky@boundarydevices.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/fec.c | 3 | ||||
-rw-r--r-- | drivers/net/fec.h | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/fec.c b/drivers/net/fec.c index 747aa4fddfd0..1d6de1e25a44 100644 --- a/drivers/net/fec.c +++ b/drivers/net/fec.c @@ -1671,6 +1671,9 @@ fec_restart(struct net_device *dev, int duplex) writel(OPT_FRAME_SIZE | 0x06, fep->hwp + FEC_R_CNTRL); writel(0x0, fep->hwp + FEC_X_CNTRL); } +#ifdef FEC_FTRL + writel(PKT_MAXBUF_SIZE, fep->hwp + FEC_FTRL); +#endif fep->full_duplex = duplex; /* Set MII speed */ diff --git a/drivers/net/fec.h b/drivers/net/fec.h index 0c26c6c2db95..49eb060337b8 100644 --- a/drivers/net/fec.h +++ b/drivers/net/fec.h @@ -49,6 +49,7 @@ #define FEC_R_FIFO_RSEM 0x194 /* Receive FIFO section empty threshold */ #define FEC_R_FIFO_RAEM 0x198 /* Receive FIFO almost empty threshold */ #define FEC_R_FIFO_RAFL 0x19c /* Receive FIFO almost full threshold */ +#define FEC_FTRL 0x1b0 /* Frame truncation receive length*/ #define FEC_MIIGSK_CFGR 0x300 /* MIIGSK Configuration reg */ #define FEC_MIIGSK_ENR 0x308 /* MIIGSK Enable reg */ |