tg3: Don't access phy test ctrl reg for 5717+
authorMatt Carlson <mcarlson@broadcom.com>
Mon, 2 Aug 2010 11:25:58 +0000 (11:25 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 2 Aug 2010 22:46:28 +0000 (15:46 -0700)
commit88075d915b51d9a17cc7436c868013a3113a849a
tree8e55cb878c6928f6d6b9f44b21c9b2121452aa1a
parentc885e824699f49bc3758a0dec760e189cd774e79
tg3: Don't access phy test ctrl reg for 5717+

The phy test register location has been repurposed for 5717+ devices.
This patch changes the code to avoid this location for these devices.

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>
drivers/net/tg3.c
drivers/net/tg3.h