]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 13 Apr 2020 11:16:28 +0000 (13:16 +0200)
commite02afb9be9f72d5c2c3b9248638d56939300086b
tree6e6e72821fc5b94c85c3a418e39c5a3ac73209bb
parent3e1701448571b09c3540f2edf7c17237cd9acc0e
net: dsa: bcm_sf2: Ensure correct sub-node is parsed

[ Upstream commit afa3b592953bfaecfb4f2f335ec5f935cff56804 ]

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: d9338023fb8e ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/dsa/bcm_sf2.c