]> git.baikalelectronics.ru Git - kernel.git/commit
tg3: Add MDIO bus address assignments
authorMatt Carlson <mcarlson@broadcom.com>
Tue, 1 Sep 2009 13:21:36 +0000 (13:21 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 2 Sep 2009 07:44:09 +0000 (00:44 -0700)
commit66e8e03674307e423abc23de6b0182e80cd7e102
tree82ad75d5fb45ebaaf05981baaa306c064f102e0d
parentb3fd57fff729e7ff8f7e1bafc573bf0bccdc7a27
tg3: Add MDIO bus address assignments

The 5717 is a dual port chip that has a shared MDIO bus design.  While
it is impossible for one function to interface with the wrong phy, that
function still needs to know which MDIO bus address to use when
interfacing with its own phy.  This patch adds code to determine which
MDIO bus address to use.

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