]> Pileus Git - ~andy/linux/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)
commitead2402cb40a023c22d93ff374eee31022e28c58
tree655f9c949f0c9380343155b6ee42eee69320f8ca
parent4fbef95af4e62d4aada6c1728e04d3b1c828abe0
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