]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: get port name at parse time
authorVivien Didelot <vivien.didelot@savoirfairelinux.com>
Fri, 27 Oct 2017 19:55:18 +0000 (15:55 -0400)
committerDavid S. Miller <davem@davemloft.net>
Wed, 1 Nov 2017 02:47:36 +0000 (11:47 +0900)
commit45494fada2724d22eb5d50a0c53b9e387067f8d9
tree34be73f20faedfd7c979548b5336cfcb4d61cd56
parent9d02f8a4ce062bfc9eaf660d3011ac8ce4d3a789
net: dsa: get port name at parse time

Get the optional "label" property and assign a default one directly at
parse time instead of doing it when creating the slave.

For legacy, simply assign the port name stored in cd->port_names.

Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dsa/dsa2.c
net/dsa/legacy.c