]> git.baikalelectronics.ru Git - kernel.git/commit
tg3: add support a phy at an address different than 01
authorHauke Mehrtens <hauke@hauke-m.de>
Sat, 28 Sep 2013 21:15:26 +0000 (23:15 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 2 Oct 2013 19:40:57 +0000 (15:40 -0400)
commite7fcab3729ec1a370f66d191d3025efc3283d3cb
tree655f9c949f0c9380343155b6ee42eee69320f8ca
parent6449b2d8ab9b44ffbb7fa56be4e69d1ff96e7511
tg3: add support a phy at an address different than 01

When phylib was in use tg3 only searched at address 01 on the mdio
bus and did not work with any other address. On the BCM4705 SoCs the
switch is connected as a PHY behind the MAC driven by tg3 and it is at
PHY address 30 in most cases. This is a preparation patch to allow
support for such switches.

phy_addr is set to TG3_PHY_MII_ADDR for all devices, which are using
phylib, so this should not change any behavior.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Acked-by: Nithin Nayak Sujir <nsujir@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/tg3.c