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

Fix byte order in TOTMR register #49

Conversation

bogdankolendovskyy
Copy link
Collaborator

Commit fixes the byte order in the struct that defines TOTMR register and adds padding to prevent possible issues among compilers. Also addresses two typos made in custom_ioctl commands.

Closes #48

Description

Fix byte order in lan867x_plca_totmr_reg_t and add padding to lan867x_plca_***_reg_t structs to prevent possible undefined behaviour. Fix typos in custom_ioctl commands

--- LAN867x_ETH_CMD_S_PLCA_TOT
+++ LAN867X_ETH_CMD_S_PLCA_TOT

and

--- LAN867x_ETH_CMD_G_PLCA_TOT
+++ LAN867X_ETH_CMD_G_PLCA_TOT

Related

Testing


Checklist

Before submitting a Pull Request, please ensure the following:

  • 🚨 This PR does not introduce breaking changes.
  • All CI checks (GH Actions) pass.
  • Documentation is updated as needed.
  • Tests are updated or added as necessary.
  • Code is well-commented, especially in complex areas.
  • Git history is clean — commits are squashed to the minimum necessary.

@bogdankolendovskyy bogdankolendovskyy force-pushed the bugfix/lan867x_register_byte_order branch from f369946 to dae1eb2 Compare January 13, 2025 14:06
@bogdankolendovskyy bogdankolendovskyy self-assigned this Jan 13, 2025
@bogdankolendovskyy bogdankolendovskyy force-pushed the bugfix/lan867x_register_byte_order branch from dae1eb2 to 87a2e62 Compare January 14, 2025 11:33
kostaond
kostaond previously approved these changes Jan 15, 2025
@kostaond kostaond self-requested a review January 15, 2025 13:34
@kostaond kostaond dismissed their stale review January 16, 2025 08:43

Burst timer probably needs to be swapped too.

Commit fixe the byte order in truct that defines TOTMR register and adds padding to prevent possible issues among compilers.
Also addresses two typos made in custom_ioctl commands.

Closes espressif#48
@bogdankolendovskyy bogdankolendovskyy force-pushed the bugfix/lan867x_register_byte_order branch from 87a2e62 to 28d8a4f Compare January 16, 2025 13:28
@kostaond kostaond merged commit 20491bc into espressif:master Jan 17, 2025
10 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.

LAN8670 PLCA Configuration error (IDFGH-14401)
2 participants