]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: bcm_sf2: Ensure correct sub-node is parsed
authorFlorian Fainelli <f.fainelli@gmail.com>
Sun, 5 Apr 2020 20:00:30 +0000 (13:00 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 6 Apr 2020 17:22:58 +0000 (10:22 -0700)
commit84c8cdfa5421a1e3c661b8857842dcf58ac4f102
tree25f486fce200edb33fb422f0610a1248bf4d5644
parent41da4b717997fca508d2ae1a6414b9a7e06769d0
net: dsa: bcm_sf2: Ensure correct sub-node is parsed

When the bcm_sf2 was converted into a proper platform device driver and
used the new dsa_register_switch() interface, we would still be parsing
the legacy DSA node that contained all the port information since the
platform firmware has intentionally maintained backward and forward
compatibility to client programs. Ensure that we do parse the correct
node, which is "ports" per the revised DSA binding.

Fixes: c2bf8725e741 ("net: dsa: bcm_sf2: Make it a real platform device driver")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Vivien Didelot <vivien.didelot@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/bcm_sf2.c