]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: slave: Remove MDIO address from switch MDIO bus name
authorAndrew Lunn <andrew@lunn.ch>
Sat, 4 Jun 2016 19:16:55 +0000 (21:16 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 4 Jun 2016 21:29:52 +0000 (14:29 -0700)
commite680dbcdaf6bdeb958f5ffd2935e8167bd777f30
tree3015c4c6c0c63d2576774149dc1c442f6708a98e
parent545daad4b5cacb9742fc333f52f6a27bca86ce64
net: dsa: slave: Remove MDIO address from switch MDIO bus name

The DSA layer should no longer assume the switch is connected to an
MDIO bus. As a result, we cannot use the address on the MDIO bus when
forming the name of the switches internal MDIO bus for its builtin and
possibly external PHYs. The switch index is sufficient to make the
name unique, so drop the MDIO address.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dsa/slave.c