zephyr/drivers/ethernet
Bilal Wasim 10a05017bc drivers: eth: stm32: Fix driver crash caused by RX IRQ trigger
All initialization of the Ethernet interface is done in the
eth_initialize function which is invoked by the boot code.
This function sets up DMA, programs the Ethernet module and
enables IRQs. However, this function does not setup "netif"
interface info which is done when the ethernet device is
enumerated by the NET stack via the "iface_api.init" func.
However, after the eth_initialize func is called, it is
possible that the system receives RX interrupts, and the
"rx_thread" accesses the "netif" pointer to get iface info.
However, because the "netif" info is not necessarily
populated at this time, we get a crash (as OS does NULL
access).

Fixed by enabling Ethernet IRQ after the interface is
properly setup.

Tested on Nucleo F767Zi board.

Fixes #25408

Signed-off-by: Bilal Wasim <bilalwasim676@gmail.com>
2020-05-18 19:11:40 +02:00
..
CMakeLists.txt drivers/ethernet: Add support for SiLabs Giant Gecko GG11 2020-01-24 10:28:33 -06:00
eth_e1000_priv.h ethernet/eth_e1000.c: change to new PCI(e) functions 2019-04-22 09:34:00 -07:00
eth_e1000.c drivers: ethernet: Convert to new DT_INST macros 2020-03-30 13:01:22 -05:00
eth_enc28j60_priv.h gpio: rename typedef for devicetree flags 2020-02-05 12:00:36 +01:00
eth_enc28j60.c drivers: Replace GPIO_CS Kconfig with devicetree detection 2020-05-09 13:07:05 +02:00
eth_enc424j600_priv.h gpio: rename typedef for devicetree flags 2020-02-05 12:00:36 +01:00
eth_enc424j600.c drivers: Replace GPIO_CS Kconfig with devicetree detection 2020-05-09 13:07:05 +02:00
eth_gecko_priv.h device: avoid casting away const from config_info pointer 2020-05-13 18:21:52 +02:00
eth_gecko.c drivers: eth: Get Manual MAC address from devicetree 2020-05-09 16:29:57 +02:00
eth_liteeth.c drivers: eth: Replace driver specific RANDOM_MAC Kconfig with devicetree 2020-05-09 16:29:57 +02:00
eth_mcux.c devicetree: remove DT_HAS_NODE_STATUS_OKAY 2020-05-13 18:24:42 +02:00
eth_native_posix_adapt.c headers: Refactor kernel and arch headers. 2019-11-06 16:07:32 -08:00
eth_native_posix_priv.h
eth_native_posix.c drivers: eth: Refactor generation of random mac into help function 2020-05-09 16:29:57 +02:00
eth_sam0_gmac.h drivers: ethernet: eth_sam_gmac: Add SAM0 family support 2020-04-17 04:56:28 -05:00
eth_sam_gmac_priv.h device: Fix structure attributes access 2020-05-08 23:07:44 +02:00
eth_sam_gmac.c drivers: eth: Get Manual MAC address from devicetree 2020-05-09 16:29:57 +02:00
eth_smsc911x_priv.h drivers: ethernet: Convert to new DT_INST macros 2020-03-30 13:01:22 -05:00
eth_smsc911x.c driver: eth: smsc911x: Convert to use k_timeout_t 2020-05-01 10:50:03 +03:00
eth_stellaris_priv.h device: avoid casting away const from config_info pointer 2020-05-13 18:21:52 +02:00
eth_stellaris.c device: avoid casting away const from config_info pointer 2020-05-13 18:21:52 +02:00
eth_stm32_hal_priv.h device: avoid casting away const from config_info pointer 2020-05-13 18:21:52 +02:00
eth_stm32_hal.c drivers: eth: stm32: Fix driver crash caused by RX IRQ trigger 2020-05-18 19:11:40 +02:00
eth.h drivers: eth: Get Manual MAC address from devicetree 2020-05-09 16:29:57 +02:00
Kconfig cmake: Allow change of the QEMU Ethernet interface name 2020-03-10 14:38:28 +02:00
Kconfig.e1000 drivers: eth: e1000: Add a hexdump of the received/sent data 2020-01-02 16:58:27 -05:00
Kconfig.enc28j60 drivers: Replace GPIO_CS Kconfig with devicetree detection 2020-05-09 13:07:05 +02:00
Kconfig.enc424j600 drivers: Replace GPIO_CS Kconfig with devicetree detection 2020-05-09 13:07:05 +02:00
Kconfig.gecko drivers: eth: Get Manual MAC address from devicetree 2020-05-09 16:29:57 +02:00
Kconfig.liteeth drivers: eth: Replace driver specific RANDOM_MAC Kconfig with devicetree 2020-05-09 16:29:57 +02:00
Kconfig.mcux drivers: ethernet: mcux: rework how unique mac is determined 2020-05-09 16:29:57 +02:00
Kconfig.native_posix kconfig: Replace non-defconfig single-symbol 'if's with 'depends on' 2020-02-12 10:32:34 -06:00
Kconfig.sam_gmac drivers: eth: Get Manual MAC address from devicetree 2020-05-09 16:29:57 +02:00
Kconfig.smsc911x kconfig: Remove '# Hidden' comments on promptless symbols 2019-12-21 10:30:33 -05:00
Kconfig.stellaris kconfig: Remove '# Hidden' comments on promptless symbols 2019-12-21 10:30:33 -05:00
Kconfig.stm32_hal kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
phy_gecko.c coccinelle: re-run timeout conversion semantic patch 2020-04-02 19:47:51 +03:00
phy_gecko.h drivers/ethernet: Add support for SiLabs Giant Gecko GG11 2020-01-24 10:28:33 -06:00
phy_sam_gmac.c drivers: ethernet: eth_sam_gmac: Add SAM0 family support 2020-04-17 04:56:28 -05:00
phy_sam_gmac.h drivers: ethernet: phy_sam_gmac: Add link status query function 2020-03-21 15:37:59 +02:00