diff options
author | Troy Kisky <troy.kisky@boundarydevices.com> | 2012-12-01 14:05:17 -0700 |
---|---|---|
committer | Eric Nelson <eric.nelson@boundarydevices.com> | 2012-12-13 11:20:39 -0700 |
commit | f8626240dda0f1c0b517835356a2121a71600b97 (patch) | |
tree | e61b772dbd511d321346f4095865831814f7a48a | |
parent | 5b153d52c09d8cf35014d410bb7aec7462a6209c (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>
-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 437718890e65..351417cab46a 100644 --- a/drivers/net/fec.c +++ b/drivers/net/fec.c @@ -1614,6 +1614,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 */ |