]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: sja1105: be compatible with "ethernet-ports" OF node name
authorVladimir Oltean <vladimir.oltean@nxp.com>
Sun, 30 May 2021 22:59:32 +0000 (01:59 +0300)
committerJakub Kicinski <kuba@kernel.org>
Tue, 1 Jun 2021 05:40:25 +0000 (22:40 -0700)
commit0798dabe77dc28acb5ec8c96a4cf272a23361c48
treec54f6966dd1ca759f7552714d5cff0ebcfe0f945
parent4f547c6a7591fa33f9b4f84c4fe9aef78a4ed9f5
net: dsa: sja1105: be compatible with "ethernet-ports" OF node name

Since commit f2f3e09396be ("net: dsa: sja1105: be compatible with
"ethernet-ports" OF node name"), DSA supports the "ethernet-ports" name
for the container node of the ports, but the sja1105 driver doesn't,
because it handles some device tree parsing of its own.

Add the second node name as a fallback.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/dsa/sja1105/sja1105_main.c