Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

STM32f7: Fix TX timestamp check #232

Merged
merged 2 commits into from
Sep 11, 2024

Conversation

marwaiehm-st
Copy link
Contributor

This fix ensures that the TX timestamp is properly set by correctly
checking the ETH_DMATXDESC_LS and ETH_DMATXDESC_TTSS flags in the DESCO register.

Fixes STMicroelectronics/STM32CubeF7#121

@marwaiehm-st marwaiehm-st marked this pull request as ready for review September 4, 2024 13:12
@marwaiehm-st marwaiehm-st changed the title Fix TX timestamp check STM32f7: Fix TX timestamp check Sep 4, 2024
@erwango
Copy link
Member

erwango commented Sep 4, 2024

Thanks for the fix, which looks totally fine.
One question to settle is how to backport on V3.7.0 as I don't know how to handle modules LTS branches.
I'll get some inputs and come back on it.

Copy link
Contributor

@mathieuchopstm mathieuchopstm left a comment

Choose a reason for hiding this comment

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

Minor remarks for README entry

stm32cube/stm32f7xx/README Outdated Show resolved Hide resolved
stm32cube/stm32f7xx/README Outdated Show resolved Hide resolved
stm32cube/stm32f7xx/README Show resolved Hide resolved
@erwango
Copy link
Member

erwango commented Sep 10, 2024

@marwaiehm-st Please make an zephyr branch related to this PR. As we'll need to get it backported, it will likely be required in the process at one moment.

kartben and others added 2 commits September 11, 2024 09:05
It looks like the original code was a bad copy-paste from H5/H7 HALs.
ETH_DMATXDESC_LS and ETH_DMATXDESC_TTSS are flags from the DuESC0 register.
This fix allows to effectively set the TX timestamp properly when there
is one.

Signed-off-by: Benjamin Cabé <[email protected]>
Update README file with the new patch "Use the correct register DESC0"

Signed-off-by: IBEN EL HADJ MESSAOUD Marwa <[email protected]>
@marwaiehm-st
Copy link
Contributor Author

PR rebased

@erwango erwango merged commit c4099c2 into zephyrproject-rtos:main Sep 11, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrect Handling of TX Timestamp Flags in STM32 Ethernet Driver
5 participants