Skip to content

Conversation

@ABOSTM
Copy link
Contributor

@ABOSTM ABOSTM commented May 12, 2021

drivers: ethernet: eth_stm32_hal.c: enable IRQ at the end of iface init

This avoid IRQ to be handle before iface init is finished
(especially before iface address is set)
Fixes #32771

@erwango erwango added the bug The issue is a bug, or the PR is fixing a bug label May 12, 2021
@ABOSTM ABOSTM force-pushed the ETH_IRQ_ENABLE_TOO_EARLY branch from 78217bc to 558025b Compare May 12, 2021 11:09
@ABOSTM ABOSTM force-pushed the ETH_IRQ_ENABLE_TOO_EARLY branch from 558025b to c31c4f9 Compare May 12, 2021 11:53
@erwango
Copy link
Member

erwango commented May 12, 2021

^^@jonasn-ge

Copy link
Contributor

@KozhinovAlexander KozhinovAlexander left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ABOSTM Thank you for your PR and testing it. Please take a look at my suggestions. I hope, they can be helpful. Otherwise LGTM.

@ghost
Copy link

ghost commented May 14, 2021

This helps my use-case, see comment in #32771. Tested on STM32F427 with auto-neg disabled.

Copy link
Contributor

@lochej lochej left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, tested on F767ZI with dumb_http_server 👍

This avoid IRQ to be handle before iface init is finished
(especially before iface address is set)
Fixes zephyrproject-rtos#32771

Signed-off-by: Alexandre Bourdiol <alexandre.bourdiol@st.com>
@ABOSTM ABOSTM force-pushed the ETH_IRQ_ENABLE_TOO_EARLY branch from c31c4f9 to 653b329 Compare May 17, 2021 09:22
Copy link
Contributor

@KozhinovAlexander KozhinovAlexander left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@nashif nashif merged commit d915eb8 into zephyrproject-rtos:main May 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: Ethernet area: Networking bug The issue is a bug, or the PR is fixing a bug platform: STM32 ST Micro STM32

Projects

None yet

Development

Successfully merging this pull request may close these issues.

STM32 with Ethernet crashes when receiving packets early

6 participants