From 5512ca01afb2e5781c5a182bd30e2cdc48e77d9d Mon Sep 17 00:00:00 2001 From: Pyun YongHyeon Date: Wed, 26 Oct 2011 18:05:46 +0000 Subject: [PATCH] Make CPMU handle GPHY power down control on controllers that have CPMU capability. --- sys/dev/bge/if_bge.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/dev/bge/if_bge.c b/sys/dev/bge/if_bge.c index 999ab7bfba7..c28c32f6d58 100644 --- a/sys/dev/bge/if_bge.c +++ b/sys/dev/bge/if_bge.c @@ -3446,7 +3446,8 @@ bge_reset(struct bge_softc *sc) * Set GPHY Power Down Override to leave GPHY * powered up in D0 uninitialized. */ - if (BGE_IS_5705_PLUS(sc)) + if (BGE_IS_5705_PLUS(sc) && + (sc->bge_flags & BGE_FLAG_CPMU_PRESENT) == 0) reset |= BGE_MISCCFG_GPHY_PD_OVERRIDE; /* Issue global reset */