]> 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)
commitd25b19c94938ff8bc1ca285ba31c9799121362d1
tree3015c4c6c0c63d2576774149dc1c442f6708a98e
parent88b76b80f449fadb6e457f0a3a5d60b7a0529d45
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