zephyr/drivers/ethernet
Lukasz Majewski 344397fba5 fix: dsa: Initialize ethernet contexts for DSA switch lan interfaces
After the commit c1f7b9f45a ("net: l2: ethernet: fix k_work API usage
in carrier on/off handling") each ethernet interface (including DSA
ports) shall first call ethernet_init() before carrier_on_of() function
is called.

As DSA ethernet interfaces (lan{123}) have their own k_work item to
monitor the carrier status (by reading switch IC registers), it was
necessary to move functions, which initialize it after the code which
sets up necessary interfaces (i.e. call ethernet_init(iface)).

In that way the error when accessing uninitialized members of ethernet
context is avoided.

Signed-off-by: Lukasz Majewski <lukma@denx.de>
2021-04-07 14:17:05 +02:00
..
CMakeLists.txt drivers: ethernet: Add support for KSZ8794 DSA device 2021-01-20 10:03:42 +02:00
dsa_ksz8794.c fix: dsa: Initialize ethernet contexts for DSA switch lan interfaces 2021-04-07 14:17:05 +02:00
dsa_ksz8794.h drivers: ethernet: Add support for KSZ8794 DSA device 2021-01-20 10:03:42 +02:00
eth_e1000_priv.h
eth_e1000.c drivers: device: do not reuse tag name 'device' 2021-03-22 19:48:14 -04:00
eth_enc28j60_priv.h device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
eth_enc28j60.c drivers: ethernet: Convert drivers to new DT device macros 2020-12-17 11:02:11 -06:00
eth_enc424j600_priv.h drivers: ethernet: Fix device instance const qualifier loss 2020-09-02 13:48:13 +02:00
eth_enc424j600.c drivers: ethernet: Convert drivers to new DT device macros 2020-12-17 11:02:11 -06:00
eth_gecko_priv.h
eth_gecko.c kernel: sem: add K_SEM_MAX_LIMIT 2021-03-05 08:13:53 -06:00
eth_liteeth.c drivers: ethernet: Fix variable type 2021-03-26 07:13:13 -04:00
eth_mcux.c include: Move ptp_clock.h to drivers/ptp_clock.h 2021-03-25 10:09:33 +02:00
eth_native_posix_adapt.c
eth_native_posix_priv.h
eth_native_posix.c include: Move ptp_clock.h to drivers/ptp_clock.h 2021-03-25 10:09:33 +02:00
eth_sam0_gmac.h
eth_sam_gmac_priv.h device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
eth_sam_gmac.c include: Move ptp_clock.h to drivers/ptp_clock.h 2021-03-25 10:09:33 +02:00
eth_smsc911x_priv.h license: add missing SPDX headers 2021-02-11 08:05:16 -05:00
eth_smsc911x.c device: Remove DEVICE_DT_DECLARE / DEVICE_DT_INST_DECLARE 2021-01-15 07:16:21 -06:00
eth_stellaris_priv.h device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
eth_stellaris.c device: Remove DEVICE_DT_DECLARE / DEVICE_DT_INST_DECLARE 2021-01-15 07:16:21 -06:00
eth_stm32_hal_priv.h drivers: ethernet: stm32: add support for DT pinctrl 2020-10-30 15:54:13 +01:00
eth_stm32_hal.c kernel: sem: add K_SEM_MAX_LIMIT 2021-03-05 08:13:53 -06:00
eth_w5500_priv.h ethernet: w5500: use bit fielding number for mode 2020-10-26 07:35:46 -04:00
eth_w5500.c clock: renmae z_timeout_end_calc -> sys_clock_timeout_end_calc 2021-03-19 11:22:17 -04:00
eth.h
Kconfig eth: Add support for Distributed Switch Architecture [DSA] switches 2021-01-20 10:03:42 +02:00
Kconfig.dsa eth: Add support for Distributed Switch Architecture [DSA] switches 2021-01-20 10:03:42 +02:00
Kconfig.e1000
Kconfig.enc28j60
Kconfig.enc424j600
Kconfig.gecko drivers: ethernet: remove stale Kconfig IRQ priority 2021-03-03 12:16:06 +03:00
Kconfig.liteeth drivers: ethernet: remove stale Kconfig IRQ priority 2021-03-03 12:16:06 +03:00
Kconfig.mcux power: standarize PM Kconfigs and cleanup 2020-12-09 15:18:29 -05:00
Kconfig.native_posix
Kconfig.sam_gmac
Kconfig.smsc911x
Kconfig.stellaris
Kconfig.stm32_hal drivers: ethernet: remove stale Kconfig IRQ priority 2021-03-03 12:16:06 +03:00
Kconfig.w5500 drivers: eth: add driver for w5500 Ethernet Controller 2020-10-02 11:34:57 +02:00
phy_gecko.c
phy_gecko.h
phy_sam_gmac.c
phy_sam_gmac.h