1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/net/ethernet/microchip/lan966x
Michael Walle e6fa930f73 net: lan966x: hardcode the number of external ports
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: db8bcaad53 ("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>
2022-07-05 17:52:08 -07:00
..
Kconfig net: lan966x: Fix when CONFIG_PTP_1588_CLOCK is compiled as module 2022-02-13 15:57:03 +00:00
lan966x_ethtool.c net: lan966x: Implement get_ts_info 2022-02-01 14:18:44 +00:00
lan966x_fdb.c net: lan966x: Extend switchdev with fdb support 2021-12-20 11:44:06 +00:00
lan966x_fdma.c net: lan966x: Fix use of pointer after being freed 2022-05-12 16:21:56 -07:00
lan966x_ifh.h net: lan966x: add port module support 2021-11-29 12:58:38 +00:00
lan966x_mac.c net: lan966x: fix a couple off by one bugs 2022-04-25 11:25:37 +01:00
lan966x_main.c net: lan966x: hardcode the number of external ports 2022-07-05 17:52:08 -07:00
lan966x_main.h net: lan966x: hardcode the number of external ports 2022-07-05 17:52:08 -07:00
lan966x_mdb.c net: lan966x: Update mdb when enabling/disabling mcast_snooping 2022-02-05 15:00:43 +00:00
lan966x_phylink.c net: lan966x: use .mac_select_pcs() interface 2022-02-03 19:11:21 -08:00
lan966x_port.c net: lan966x: Add FDMA functionality 2022-04-11 20:49:32 -07:00
lan966x_ptp.c net: lan966x: Add support for PTP_PF_EXTTS 2022-04-27 12:03:18 +01:00
lan966x_regs.h net: lan966x: Add registers used to configure the PTP pin 2022-04-27 12:03:18 +01:00
lan966x_switchdev.c net: lan966x: Fix when a port's upper is changed. 2022-04-11 20:47:15 -07:00
lan966x_vlan.c net: lan966x: Extend switchdev with mdb support 2022-01-05 11:25:13 +00:00
Makefile net: lan966x: Add FDMA functionality 2022-04-11 20:49:32 -07:00