diff options
author | Matt Carlson <mcarlson@broadcom.com> | 2010-08-02 07:25:59 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-08-02 18:46:28 -0400 |
commit | f37500d3f66ba82888315838278d56fc27308327 (patch) | |
tree | a3b9d7c4a6547d3ac1f3515f33914ae8a617b8f1 /drivers/net/tg3.c | |
parent | 88075d915b51d9a17cc7436c868013a3113a849a (diff) |
tg3: Manage gphy power for CPMU-less devs only
This patch changes the code to only manage the PCIe gphy power for
CPMU-less devices only. The CPMU takes over management for newer
chips.
Reviewed-by: Benjamin Li <benli@broadcom.com>
Reviewed-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: Matt Carlson <mcarlson@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/tg3.c')
-rw-r--r-- | drivers/net/tg3.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c index 5d155c50e6e3..38979f24e541 100644 --- a/drivers/net/tg3.c +++ b/drivers/net/tg3.c | |||
@@ -6948,8 +6948,11 @@ static int tg3_chip_reset(struct tg3 *tp) | |||
6948 | tr32(GRC_VCPU_EXT_CTRL) & ~GRC_VCPU_EXT_CTRL_HALT_CPU); | 6948 | tr32(GRC_VCPU_EXT_CTRL) & ~GRC_VCPU_EXT_CTRL_HALT_CPU); |
6949 | } | 6949 | } |
6950 | 6950 | ||
6951 | if (tp->tg3_flags2 & TG3_FLG2_5705_PLUS) | 6951 | /* Manage gphy power for all CPMU absent PCIe devices. */ |
6952 | if ((tp->tg3_flags2 & TG3_FLG2_5705_PLUS) && | ||
6953 | !(tp->tg3_flags & TG3_FLAG_CPMU_PRESENT)) | ||
6952 | val |= GRC_MISC_CFG_KEEP_GPHY_POWER; | 6954 | val |= GRC_MISC_CFG_KEEP_GPHY_POWER; |
6955 | |||
6953 | tw32(GRC_MISC_CFG, val); | 6956 | tw32(GRC_MISC_CFG, val); |
6954 | 6957 | ||
6955 | /* restore 5701 hardware bug workaround write method */ | 6958 | /* restore 5701 hardware bug workaround write method */ |