aboutsummaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorRob Herring <rob.herring@calxeda.com>2012-06-01 16:45:36 -0500
committerJohn Rigby <john.rigby@linaro.org>2012-12-06 13:51:50 -0700
commit16ac3158d40f5d682f3407df6a8702e0bb6e1cac (patch)
tree61aee14d17d1c04255a901333a4c8750bd1cf5f4 /drivers
parent4d82bee32b30d42516c53e168791c879ad762919 (diff)
downloadu-boot-linaro-stable-16ac3158d40f5d682f3407df6a8702e0bb6e1cac.tar.gz
net: calxedaxgmac: disable pause frame transmit
The xgmac receiver will only have buffer if we are doing a network command, so we want to just drop frames rather than send pause frames. Also, enable rx cut-thru for better performance. Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/calxedaxgmac.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/calxedaxgmac.c b/drivers/net/calxedaxgmac.c
index e3553d68d..333c400b7 100644
--- a/drivers/net/calxedaxgmac.c
+++ b/drivers/net/calxedaxgmac.c
@@ -400,13 +400,13 @@ static int xgmac_init(struct eth_device *dev, bd_t * bis)
/* set flow control parameters and store and forward mode */
value = (FIFO_MINUS_12K << XGMAC_CORE_OMR_RFD_SHIFT) |
(FIFO_MINUS_4K << XGMAC_CORE_OMR_RFA_SHIFT) |
- XGMAC_CORE_OMR_EFC | XGMAC_CORE_OMR_TSF | XGMAC_CORE_OMR_RSF;
+ XGMAC_CORE_OMR_EFC | XGMAC_CORE_OMR_TSF;
writel(value, &regs->core_opmode);
/* enable pause frames */
value = (1024 << XGMAC_CORE_FLOW_PT_SHIFT) |
(1 << XGMAC_CORE_FLOW_PLT_SHIFT) |
- XGMAC_CORE_FLOW_UP | XGMAC_CORE_FLOW_RFE | XGMAC_CORE_FLOW_TFE;
+ XGMAC_CORE_FLOW_UP | XGMAC_CORE_FLOW_RFE;
writel(value, &regs->flow_control);
/* Initialize the descriptor chains */