zephyr/drivers/ethernet
Lukasz Majewski 24cbb74d46 net: dsa: Fix DSA driver for KSZ8xxx to correctly initialize LAN devices
The commit "drivers: ethernet: dsa_ksz8xxx: use
NET_DEVICE_DT_DEFINE_INSTANCE"
(SHA1: f78a081066) replaced
NET_DEVICE_INIT_INSTANCE() with NET_DEVICE_DT_DEFINE_INSTANCE() to
facilitate the removal of deprecated (from Zephyr's 3.2 release)
DT_LABEL() macro.

Unfortunately, the per LAN port initialization is necessary for correct
operation of the DSA driver - otherwise following errors were visible
when LLDP DSA sample (samples/net/dsa/src) was run on ip_k66f board:

<wrn> net_if: iface 0x20001440 is down
<inf> net_dsa_lldp_sample: LLDP pkt recv -> lan1
<inf> net_dsa_lldp_sample:   CHASSIS ID:     38:05:43:69:XX:ZZ
<inf> net_dsa_lldp_sample:   PORT ID:        38:05:43:69:XX:ZZ
<inf> net_dsa_lldp_sample:   TTL:            120s
<inf> net_dsa_lldp_sample:   SYSTEM NAME:    mtt
<err> net_dsa_lldp_sample: Failed to send, errno 115

The fix is to use again NET_DEVICE_INIT_INSTANCE() with "lan"X name
assigned (to avoid too long names when recommended DT_PROP() is
used instead of DT_LABEL()).

Fixes: f78a081066

Signed-off-by: Lukasz Majewski <lukma@denx.de>
2024-04-22 06:50:32 -07:00
..
eth_nxp_enet_qos drivers: eth_nxp_enet_qos: Fixed unused variable 2024-04-04 10:14:30 +02:00
nxp_enet drivers: ethernet: Add ETH_DSA_SUPPORT 2024-04-18 11:18:31 +02:00
phy drivers: ethernet: phy: KSZ8081 PHY Driver improvements 2024-04-18 11:18:31 +02:00
CMakeLists.txt drivers: nxp_enet: Deprecate ETH_MCUX 2024-04-18 11:18:31 +02:00
dsa_ksz8xxx.c net: dsa: Fix DSA driver for KSZ8xxx to correctly initialize LAN devices 2024-04-22 06:50:32 -07:00
dsa_ksz8794.h
dsa_ksz8863.h
eth.h drivers: ethernet: use sys_rand_get directly 2024-04-05 12:28:46 +02:00
eth_adin2111.c drivers: ethernet: eth_adin2111: use NET_ETH_ADDR_LEN 2024-03-27 14:31:21 +00:00
eth_adin2111_priv.h drivers: ethernet: eth_adin2111: extend api support 2024-03-27 14:31:21 +00:00
eth_cyclonev.c driver: ethernet: cvsx remove ugly whitespace 2023-01-24 17:46:17 -06:00
eth_cyclonev_priv.h drivers: ethernet: bugfix for Cyclone V Ethernet 2023-01-24 17:46:17 -06:00
eth_dwmac.c drivers: move to timepoint API 2023-07-25 09:12:26 +02:00
eth_dwmac_mmu.c kernel: mm: move kernel mm functions under kernel includes 2023-11-20 09:19:14 +01:00
eth_dwmac_priv.h
eth_dwmac_stm32h7x.c treewide: Update clock control API usage 2023-04-05 10:55:46 +02:00
eth_e1000.c drivers: ethernet: e1000: Remove VLAN code as it is no longer needed 2024-03-28 09:41:38 +00:00
eth_e1000_priv.h drivers: eth_e1000: Allow several instances 2022-11-28 13:19:51 +01:00
eth_enc28j60.c drivers: ethernet: enc28j60: Remove VLAN code as it is no longer needed 2024-03-28 09:41:38 +00:00
eth_enc28j60_priv.h drivers: ethernet: enc28j60: Add DT property to set Rx filter 2024-03-26 10:03:07 -04:00
eth_enc424j600.c drivers: ethernet: fix thread function signatures 2023-10-30 12:24:34 +01:00
eth_enc424j600_priv.h
eth_esp32.c drivers: esp32: update to hal_espressif v5.1 2024-04-05 13:39:53 +02:00
eth_gecko.c drivers: eth: gecko: fix GPIO configuration 2022-12-21 23:32:57 +09:00
eth_gecko_priv.h
eth_ivshmem.c drivers: ethernet: use sys_rand_get directly 2024-04-05 12:28:46 +02:00
eth_ivshmem_priv.h drivers: ethernet: Fix eth_ivshmem shared memory mapping 2023-11-27 12:15:43 +00:00
eth_ivshmem_queue.c drivers: ethernet: Fix eth_ivshmem shared memory mapping 2023-11-27 12:15:43 +00:00
eth_lan865x.c drivers: ethernet: lan865x: Trigger IRQ routine when rca>0 read from TX ftr 2023-12-19 08:51:27 +01:00
eth_lan865x_priv.h drivers: net: lan865x: Move PLCA configuration to dedicated structure 2023-11-29 10:06:30 +01:00
eth_liteeth.c include: add missing zephyr/irq.h include 2022-10-17 22:57:39 +09:00
eth_native_posix.c drivers: eth: native_sim: Remove VLAN handling 2024-03-28 09:41:38 +00:00
eth_native_posix_adapt.c drivers eth_native_linux: Avoid using ssize 2024-01-15 21:59:56 +01:00
eth_native_posix_priv.h drivers eth_native_linux: Avoid using ssize 2024-01-15 21:59:56 +01:00
eth_numaker.c drivers: ethernet: support for Nuvoton numaker series 2023-11-03 12:11:33 +00:00
eth_numaker_priv.h drivers: ethernet: support for Nuvoton numaker series 2023-11-03 12:11:33 +00:00
eth_nxp_s32_gmac.c drivers: ethernet: nxp_s32_gmac: Remove VLAN code as it is no longer needed 2024-03-28 09:41:38 +00:00
eth_nxp_s32_netc.c drivers: ethernet: nxp_s32_netc: Remove VLAN code as it is no longer needed 2024-03-28 09:41:38 +00:00
eth_nxp_s32_netc_priv.h drivers: ethernet: eth_nxp_s32: Implement HW MAC address filtering 2024-03-18 10:14:34 +01:00
eth_nxp_s32_netc_psi.c drivers: ethernet: eth_nxp_s32: Implement HW MAC address filtering 2024-03-18 10:14:34 +01:00
eth_nxp_s32_netc_vsi.c drivers: ethernet: eth_nxp_s32: Implement HW MAC address filtering 2024-03-18 10:14:34 +01:00
eth_raw.c drivers: ethernet: Build ethernet drivers with ETH_DRIVER_RAW_MODE 2024-03-20 08:05:55 -05:00
eth_sam0_gmac.h
eth_sam_gmac.c drivers: ethernet: sam_gmac: Remove VLAN code as it is no longer needed 2024-03-28 09:41:38 +00:00
eth_sam_gmac_priv.h hwmv2: Introduce Hardware model version 2 and convert devices 2024-03-02 16:56:33 -05:00
eth_slip_tap.c drivers: net: initialize logging for the slip module 2023-02-20 16:44:23 +01:00
eth_smsc91x.c include: always use <> for Zephyr includes 2023-09-14 13:49:58 +02:00
eth_smsc91x_priv.h drivers: eth_smsc91x: Implement promiscuous mode 2023-07-10 15:14:33 +02:00
eth_smsc911x.c include: add missing zephyr/irq.h include 2022-10-17 22:57:39 +09:00
eth_smsc911x_priv.h
eth_stellaris.c drivers: eth: stellaris: Fix build error 2024-04-10 15:55:13 +02:00
eth_stellaris_priv.h
eth_stm32_hal.c drivers: ethernet: stm32: Remove VLAN code as it is no longer needed 2024-03-28 09:41:38 +00:00
eth_stm32_hal_priv.h drivers: ethernet: eth_stm32: Rework HW MAC address filtering 2024-03-18 10:14:34 +01:00
eth_w5500.c drivers: ethernet: w5500: Add link status detection 2024-03-01 08:59:31 +01:00
eth_w5500_priv.h drivers: ethernet: w5500: Add link status detection 2024-03-01 08:59:31 +01:00
eth_xlnx_gem.c net: ethernet: Align Ethernet drivers/L2 with iface state upgrade 2022-10-20 10:00:31 +02:00
eth_xlnx_gem_priv.h include: add missing zephyr/irq.h include 2022-10-17 22:57:39 +09:00
eth_xmc4xxx.c drivers: ethernet: xmc4xxx: Remove VLAN code as it is no longer needed 2024-03-28 09:41:38 +00:00
Kconfig drivers: nxp_enet: Deprecate ETH_MCUX 2024-04-18 11:18:31 +02:00
Kconfig.adin2111 drivers: ethernet: Remove CONFIG_ETH_ADIN2111_INIT_PRIORITY 2023-10-03 15:10:12 +01:00
Kconfig.cyclonev drivers: ethernet: adding support for Cyclone V SoC DK ethernet 2022-10-06 20:19:43 -07:00
Kconfig.dsa drivers: ethernet: Add ETH_DSA_SUPPORT 2024-04-18 11:18:31 +02:00
Kconfig.dwmac drivers: select nocache only when supported 2023-09-26 15:09:51 +02:00
Kconfig.e1000 drivers: ethernet: Update Kconfig 2022-08-15 14:32:45 +02:00
Kconfig.enc28j60 drivers: ethernet: enc28j60: Prevent infinate loop on driver init 2023-05-10 11:56:59 +02:00
Kconfig.enc424j600 drivers: ethernet: Update Kconfig 2022-08-15 14:32:45 +02:00
Kconfig.esp32 drivers: ethernet: esp32: fix Kconfig 2023-11-27 12:22:02 +00:00
Kconfig.gecko drivers: ethernet: Update Kconfig 2022-08-15 14:32:45 +02:00
Kconfig.ivshmem drivers: ethernet: Add Jailhouse IVSHMEM Ethernet support 2023-05-14 18:17:33 -04:00
Kconfig.lan865x drivers: ethernet: Update ETH_LAN865X_TIMEOUT Kconfig description 2023-12-19 08:51:27 +01:00
Kconfig.liteeth drivers: ethernet: Update Kconfig 2022-08-15 14:32:45 +02:00
Kconfig.native_posix drivers: eth: native: Add native-sim support to posix Ethernet driver 2023-10-20 15:00:41 +02:00
Kconfig.numaker drivers: ethernet: support for Nuvoton numaker series 2023-11-03 12:11:33 +00:00
Kconfig.nxp_s32_gmac drivers: ethernet: nxp_s32_gmac: Imply MDIO 2024-03-20 08:05:55 -05:00
Kconfig.nxp_s32_netc drivers: nxp_s32_netc: remove dependency to NET_TEST 2023-11-08 10:10:50 +01:00
Kconfig.sam_gmac drivers: ethernet: Add ETH_DSA_SUPPORT 2024-04-18 11:18:31 +02:00
Kconfig.smsc91x ethernet: smsc91x: select MDIO 2023-08-16 14:52:31 +02:00
Kconfig.smsc911x drivers: ethernet: Update Kconfig 2022-08-15 14:32:45 +02:00
Kconfig.stellaris drivers: ethernet: Update Kconfig 2022-08-15 14:32:45 +02:00
Kconfig.stm32_hal drivers: ethernet: Add ETH_DSA_SUPPORT 2024-04-18 11:18:31 +02:00
Kconfig.w5500 drivers: ethernet: Update Kconfig 2022-08-15 14:32:45 +02:00
Kconfig.xlnx_gem drivers: ethernet: Update Kconfig 2022-08-15 14:32:45 +02:00
Kconfig.xmc4xxx drivers: ethernet: Add xmc4xxx ethernet/PTP drivers 2024-01-09 10:00:47 +01:00
oa_tc6.c drivers: ethernet: tc6: Check footer parity before updating struct oa_tc6 2023-12-19 08:51:27 +01:00
oa_tc6.h drivers: net: lan865x: Always read at least one chunk on IRQ received 2023-12-01 10:54:27 +00:00
phy_cyclonev.c drivers: ethernet: cvsx change bit label 2023-01-24 17:46:17 -06:00
phy_gecko.c
phy_gecko.h
phy_xlnx_gem.c includes: prefer <zephyr/kernel.h> over <zephyr/zephyr.h> 2022-09-05 16:31:47 +02:00
phy_xlnx_gem.h drivers: ethernet: xlnx_gem: fix PHY_MRVL_MODE_CONFIG_MASK 2023-04-28 14:48:52 +02:00