]> 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)
commit0108a6590f7cbcb02a79f3b8b6e8e7a5f683cf3f
tree655f9c949f0c9380343155b6ee42eee69320f8ca
parent2d85a184e1f8cb452d97f1458ca62c035250f1a9
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