Thread (10 messages) 10 messages, 2 authors, 2007-12-01
STALE6758d

[PATCH 1/2] skge: serial mode register values

From: Stephen Hemminger <hidden>
Date: 2007-11-28 23:30:58

For compatiablity with sk98lin, make sure and set same values
in serial mode register.

Signed-off-by: Stephen Hemminger <redacted>
---
Please apply for 2.6.24 (upstream-fixes) after the previous group
of skge patches (1.13)
--- a/drivers/net/skge.c	2007-11-28 09:27:02.000000000 -0800
+++ b/drivers/net/skge.c	2007-11-28 10:53:26.000000000 -0800
@@ -2190,9 +2190,12 @@ static void yukon_mac_init(struct skge_h
 			 TX_JAM_IPG_VAL(TX_JAM_IPG_DEF) |
 			 TX_IPG_JAM_DATA(TX_IPG_JAM_DEF));
 
-	/* serial mode register */
-	reg = GM_SMOD_VLAN_ENA | IPG_DATA_VAL(IPG_DATA_DEF);
-	if (hw->dev[port]->mtu > 1500)
+	/* configure the Serial Mode Register */
+	reg = DATA_BLIND_VAL(DATA_BLIND_DEF)
+		| GM_SMOD_VLAN_ENA
+		| IPG_DATA_VAL(IPG_DATA_DEF);
+
+	if (hw->dev[port]->mtu > ETH_DATA_LEN)
 		reg |= GM_SMOD_JUMBO_ENA;
 
 	gma_write16(hw, port, GM_SERIAL_MODE, reg);
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help