]> bbs.cooldavid.org Git - net-next-2.6.git/commit - drivers/net/tg3.h
[TG3]: 5784 / 5764 GPHY power down fix
authorMatt Carlson <mcarlson@broadcom.com>
Tue, 13 Nov 2007 05:08:03 +0000 (21:08 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 13 Nov 2007 05:08:03 +0000 (21:08 -0800)
commitce057f01956bfcb3cb8588091000ae546be78e00
tree6438c33bcdde387ab191912e970b2fb65696b0a0
parentc88864df27590b80fca4a991e0c257d1757cec41
[TG3]: 5784 / 5764 GPHY power down fix

5784 and 5764 devices fail to link / pass traffic after one load /
unload cycle.  This happens because of a hardware bug in the new CPMU.
During normal operation, the MAC depends on the PHY clock being
available.  When the PHY is powered down, the clock the MAC depends on
is disabled.  The fix is to switch the MAC clock to an alternate source
before powering down the PHY, and to restore the MAC clock to the PHY
source upon device resume.

Signed-off-by: Matt Carlson <mcarlson@broadcom.com>
Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tg3.c
drivers/net/tg3.h