tg3: Fix 5906 link problems
authorMatt Carlson <mcarlson@broadcom.com>
Wed, 25 Feb 2009 14:21:20 +0000 (14:21 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Feb 2009 07:16:29 +0000 (23:16 -0800)
commita6435f3a53746a0eb687a9f636cf1941f35f935e
tree02ad55f3c13d9377af783b62460fa0bc38b68bad
parent9ee62630fddda0142cebc45e3bbea20a8009be97
tg3: Fix 5906 link problems

Commit 6833c043f9fc03696fde623914c4a0277df2a0bc introduced the phy
auto-powerdown capability.  While the APD feature only works for 5761
and 5784 asic revisions, the (harmless portion of the) code was applied
to all 5705 and newer devices.  However, the 5906 phy departs from the
usual design.  This commit was interfering with the 5906's ability to
negotiate link against some switches.  This patch corrects the problem.

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