[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20071127110207.0d65e820@freepuppy.rosehill>
Date: Tue, 27 Nov 2007 11:02:07 -0800
From: Stephen Hemminger <shemminger@...ux-foundation.org>
To: Jeff Garzik <jgarzik@...ox.com>
Cc: netdev@...r.kernel.org, Tim Gardner <tim.gardner@...onical.com>
Subject: [PATCH 3/3] sky2: turn of dynamic Tx watermark workaround (FE+
only)
Add workaround for issues FE+ (A0) transmit watermark.
This is copied verbatim from vendor driver sk98lin (10.22.4.3).
Don't have that chip version and no more information seems to be available.
Signed-off-by: Stephen Hemminger <shemminger@...ux-foundation.org>
--- a/drivers/net/sky2.c 2007-11-26 14:02:36.000000000 -0800
+++ b/drivers/net/sky2.c 2007-11-26 14:28:47.000000000 -0800
@@ -845,6 +845,13 @@ static void sky2_mac_init(struct sky2_hw
sky2_set_tx_stfwd(hw, port);
}
+ if (hw->chip_id == CHIP_ID_YUKON_FE_P &&
+ hw->chip_rev == CHIP_REV_YU_FE2_A0) {
+ /* disable dynamic watermark */
+ reg = sky2_read16(hw, SK_REG(port, TX_GMF_EA));
+ reg &= ~TX_DYN_WM_ENA;
+ sky2_write16(hw, SK_REG(port, TX_GMF_EA), reg);
+ }
}
/* Assign Ram Buffer allocation to queue */
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists