aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorMatt Carlson <mcarlson@broadcom.com>2010-07-11 05:31:45 -0400
committerDavid S. Miller <davem@davemloft.net>2010-07-11 20:07:43 -0400
commit702e52ccd32164a09ea91aa5896ad7c64cb708cb (patch)
tree72b59ed42c59b046423a371c4d9eed330766410f /drivers
parent6867c843813a801d5f568b6fb006695316714f1b (diff)
tg3: Revert PCIe tx glitch fix
This patch reverts commit 52cdf8526fe24f11d300b75458ddee017f3f4c88, entitled "tg3: Prevent a PCIe tx glitch". The problem does not have any visible side-effects and happens too early for the driver to do anything about it. The proper place for this code is within the device's bootcode. Signed-off-by: Matt Carlson <mcarlson@broadcom.com> Reviewed-by: Michael Chan <mchan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/tg3.c24
-rw-r--r--drivers/net/tg3.h22
2 files changed, 0 insertions, 46 deletions
diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c
index e6da16a1f7bf..f61a4d8f012f 100644
--- a/drivers/net/tg3.c
+++ b/drivers/net/tg3.c
@@ -7072,30 +7072,6 @@ static int tg3_chip_reset(struct tg3 *tp)
7072 7072
7073 tg3_mdio_start(tp); 7073 tg3_mdio_start(tp);
7074 7074
7075 if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_57780) {
7076 u8 phy_addr;
7077
7078 phy_addr = tp->phy_addr;
7079 tp->phy_addr = TG3_PHY_PCIE_ADDR;
7080
7081 tg3_writephy(tp, TG3_PCIEPHY_BLOCK_ADDR,
7082 TG3_PCIEPHY_TXB_BLK << TG3_PCIEPHY_BLOCK_SHIFT);
7083 val = TG3_PCIEPHY_TX0CTRL1_TXOCM | TG3_PCIEPHY_TX0CTRL1_RDCTL |
7084 TG3_PCIEPHY_TX0CTRL1_TXCMV | TG3_PCIEPHY_TX0CTRL1_TKSEL |
7085 TG3_PCIEPHY_TX0CTRL1_NB_EN;
7086 tg3_writephy(tp, TG3_PCIEPHY_TX0CTRL1, val);
7087 udelay(10);
7088
7089 tg3_writephy(tp, TG3_PCIEPHY_BLOCK_ADDR,
7090 TG3_PCIEPHY_XGXS_BLK1 << TG3_PCIEPHY_BLOCK_SHIFT);
7091 val = TG3_PCIEPHY_PWRMGMT4_LOWPWR_EN |
7092 TG3_PCIEPHY_PWRMGMT4_L1PLLPD_EN;
7093 tg3_writephy(tp, TG3_PCIEPHY_PWRMGMT4, val);
7094 udelay(10);
7095
7096 tp->phy_addr = phy_addr;
7097 }
7098
7099 if ((tp->tg3_flags2 & TG3_FLG2_PCI_EXPRESS) && 7075 if ((tp->tg3_flags2 & TG3_FLG2_PCI_EXPRESS) &&
7100 tp->pci_chip_rev_id != CHIPREV_ID_5750_A0 && 7076 tp->pci_chip_rev_id != CHIPREV_ID_5750_A0 &&
7101 GET_ASIC_REV(tp->pci_chip_rev_id) != ASIC_REV_5785 && 7077 GET_ASIC_REV(tp->pci_chip_rev_id) != ASIC_REV_5785 &&
diff --git a/drivers/net/tg3.h b/drivers/net/tg3.h
index be7ab91f4dda..0432399ca741 100644
--- a/drivers/net/tg3.h
+++ b/drivers/net/tg3.h
@@ -2032,31 +2032,9 @@
2032 2032
2033 2033
2034/* Currently this is fixed. */ 2034/* Currently this is fixed. */
2035#define TG3_PHY_PCIE_ADDR 0x00
2036#define TG3_PHY_MII_ADDR 0x01 2035#define TG3_PHY_MII_ADDR 0x01
2037 2036
2038 2037
2039/*** Tigon3 specific PHY PCIE registers. ***/
2040
2041#define TG3_PCIEPHY_BLOCK_ADDR 0x1f
2042#define TG3_PCIEPHY_XGXS_BLK1 0x0801
2043#define TG3_PCIEPHY_TXB_BLK 0x0861
2044#define TG3_PCIEPHY_BLOCK_SHIFT 4
2045
2046/* TG3_PCIEPHY_TXB_BLK */
2047#define TG3_PCIEPHY_TX0CTRL1 0x15
2048#define TG3_PCIEPHY_TX0CTRL1_TXOCM 0x0003
2049#define TG3_PCIEPHY_TX0CTRL1_RDCTL 0x0008
2050#define TG3_PCIEPHY_TX0CTRL1_TXCMV 0x0030
2051#define TG3_PCIEPHY_TX0CTRL1_TKSEL 0x0040
2052#define TG3_PCIEPHY_TX0CTRL1_NB_EN 0x0400
2053
2054/* TG3_PCIEPHY_XGXS_BLK1 */
2055#define TG3_PCIEPHY_PWRMGMT4 0x1a
2056#define TG3_PCIEPHY_PWRMGMT4_L1PLLPD_EN 0x0038
2057#define TG3_PCIEPHY_PWRMGMT4_LOWPWR_EN 0x4000
2058
2059
2060/*** Tigon3 specific PHY MII registers. ***/ 2038/*** Tigon3 specific PHY MII registers. ***/
2061#define TG3_BMCR_SPEED1000 0x0040 2039#define TG3_BMCR_SPEED1000 0x0040
2062 2040