summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorMichael Walle <michael@walle.cc>2022-07-04 18:36:54 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-07-12 17:42:14 +0300
commit33ab04a1f39c66bf12df2d927fafa940f8d9480c (patch)
treee2f53fa3dad99a94df8ace28ecec7029acb4ea52 /net
parentdf049dad1804750c7c882ff9a33845f1f89b328c (diff)
downloadlinux-33ab04a1f39c66bf12df2d927fafa940f8d9480c.tar.xz
net: lan966x: hardcode the number of external ports
commit e6fa930f73a15238f3cb0c204e2f786c919b815c upstream. Instead of counting the child nodes in the device tree, hardcode the number of ports in the driver itself. The counting won't work at all if an ethernet port is marked as disabled, e.g. because it is not connected on the board at all. It turns out that the LAN9662 and LAN9668 use the same switching IP with the same synthesis parameters. The only difference is that the output ports are not connected. Thus, we can just hardcode the number of physical ports to 8. Fixes: db8bcaad5393 ("net: lan966x: add the basic lan966x driver") Signed-off-by: Michael Walle <michael@walle.cc> Reviewed-by: Horatiu Vultur <horatiu.vultur@microchip.com> Link: https://lore.kernel.org/r/20220704153654.1167886-1-michael@walle.cc Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions