summaryrefslogtreecommitdiffstats
path: root/drivers/net/skge.c
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@osdl.org>2005-08-16 23:01:02 +0200
committerJeff Garzik <jgarzik@pobox.com>2005-08-16 23:03:13 +0200
commitc59230818f7a8969c2f9d3b601745679127a4016 (patch)
treebdac1d9f572cdd0a4e68c13464babb53b6258db8 /drivers/net/skge.c
parent[PATCH] skge: fibre vs copper detection cleanup (diff)
downloadlinux-c59230818f7a8969c2f9d3b601745679127a4016.tar.xz
linux-c59230818f7a8969c2f9d3b601745679127a4016.zip
[PATCH] skge: increase receive flush threshold default
The flush threshold in the MAC chip should be increased. Found while reviewing vendor version of sk98lin driver. Signed-off-by: Stephen Hemminger <shemminger@osdl.org> Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
Diffstat (limited to 'drivers/net/skge.c')
-rw-r--r--drivers/net/skge.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/net/skge.c b/drivers/net/skge.c
index 3990829d3c46..38fc66a1e14c 100644
--- a/drivers/net/skge.c
+++ b/drivers/net/skge.c
@@ -1780,7 +1780,12 @@ static void yukon_mac_init(struct skge_hw *hw, int port)
reg &= ~GMF_RX_F_FL_ON;
skge_write8(hw, SK_REG(port, RX_GMF_CTRL_T), GMF_RST_CLR);
skge_write16(hw, SK_REG(port, RX_GMF_CTRL_T), reg);
- skge_write16(hw, SK_REG(port, RX_GMF_FL_THR), RX_GMF_FL_THR_DEF);
+ /*
+ * because Pause Packet Truncation in GMAC is not working
+ * we have to increase the Flush Threshold to 64 bytes
+ * in order to flush pause packets in Rx FIFO on Yukon-1
+ */
+ skge_write16(hw, SK_REG(port, RX_GMF_FL_THR), RX_GMF_FL_THR_DEF+1);
/* Configure Tx MAC FIFO */
skge_write8(hw, SK_REG(port, TX_GMF_CTRL_T), GMF_RST_CLR);