tg3: Refine phylib support
authorMatt Carlson <mcarlson@broadcom.com>
Tue, 4 Nov 2008 00:54:56 +0000 (16:54 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 4 Nov 2008 00:54:56 +0000 (16:54 -0800)
commit9c61d6bc56bf0a5fb1ebfcf4c168cc5ce30e153b
tree7e5f3e66d24b7456d98a5aa9f9a0ca3f0db63130
parent0a459aac9d151c2e36ec65723b9b845b24c5cbc3
tg3: Refine phylib support

This patch refines the phylib support in the tg3 driver.  The patch does
the following things :

* Rename tg3_mdio_config() to tg3_mdio_config_5785().  The 5785 will be
  the only device that will use it so the name might as well reflect
  that.
* Fix a memory leak if mdiobus_register() fails.
* Add code to deal with phy device detection failures.
* Add code to correct the supported list of phy features based on the
  MAC <=> PHY interface.

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