Skip to content

drivers/imx-enet: Add support for ethernet in imxrt1064-evk #96

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

Open
wants to merge 16 commits into
base: master
Choose a base branch
from

Conversation

julianuziemblo
Copy link

@julianuziemblo julianuziemblo commented Aug 26, 2024

Description

Add Ethernet support for iMX RT106x, merging the code with existing driver for iMX 6ULL in drivers/imx-enet.c.

Motivation and Context

https://jira.phoenix-rtos.com/browse/RTOS-507

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Chore (refactoring, style fixes, git/CI config, submodule management, no code logic changes)

How Has This Been Tested?

  • Already covered by automatic testing.
  • New test added: (add PR link here).
  • Tested by hand on: armv7a7-imx6ull-evk, armv7m7-imxrt106x-evk, armv7a7-imx6ull-dataro, ia32-generc-qemu.

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing linter checks and tests passed.
  • My changes generate no new compilation warnings for any of the targets.

Special treatment

@julianuziemblo julianuziemblo force-pushed the julianuziemblo/enet-imxrt1064-evk branch from 3185e73 to a582983 Compare August 26, 2024 12:09
@julianuziemblo julianuziemblo force-pushed the julianuziemblo/enet-imxrt1064-evk branch 3 times, most recently from b8059e4 to 2af33ab Compare September 3, 2024 12:58
@julianuziemblo julianuziemblo force-pushed the julianuziemblo/enet-imxrt1064-evk branch from 2af33ab to f5e973e Compare September 3, 2024 13:01
@phoenix-rtos phoenix-rtos deleted a comment from github-actions bot Sep 3, 2024
Copy link
Member

@nalajcie nalajcie left a comment

Choose a reason for hiding this comment

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

Partial review as current commit structure prevents efficient code review (the browser crashed with the amount of changes/comments in single commit :)).

Short summary:

  • fix commit message titles (see git history for examples), at least prefix them with module name (also include in commit message bodies what / why was changed), add missing JIRA ID
  • clearly split the changes into separate atomic commits (eg. changing type name is not bringing new functionality and should be a separate change)
  • fix coding style (according to our coding convention / MISRA as described in some comments)
  • please test the code after changes on imx6ull-evk and DTR project (from CI I see that something is broken there), check also if the performance is not degraded

@julianuziemblo julianuziemblo force-pushed the julianuziemblo/enet-imxrt1064-evk branch from f5e973e to 7dbbd7e Compare September 4, 2024 08:03
Copy link

github-actions bot commented Sep 4, 2024

Unit Test Results

7 958 tests  ±0   7 434 ✅ ±0   40m 50s ⏱️ +29s
  470 suites ±0     524 💤 ±0 
    1 files   ±0       0 ❌ ±0 

Results for commit 37110e8. ± Comparison against base commit 6622c68.

♻️ This comment has been updated with latest results.

@julianuziemblo julianuziemblo force-pushed the julianuziemblo/enet-imxrt1064-evk branch from 7dbbd7e to 710b1d1 Compare September 6, 2024 14:57
@julianuziemblo julianuziemblo force-pushed the julianuziemblo/enet-imxrt1064-evk branch 2 times, most recently from e11d5db to 067dc1b Compare September 6, 2024 15:10
@julianuziemblo julianuziemblo force-pushed the julianuziemblo/enet-imxrt1064-evk branch 3 times, most recently from 8c41250 to fc32052 Compare September 10, 2024 10:19
@nalajcie nalajcie marked this pull request as draft September 13, 2024 11:23
@nalajcie
Copy link
Member

converting to draft until it will be ready for next review

@julianuziemblo julianuziemblo force-pushed the julianuziemblo/enet-imxrt1064-evk branch from fc32052 to f42a4cc Compare September 16, 2024 08:11
@julianuziemblo julianuziemblo force-pushed the julianuziemblo/enet-imxrt1064-evk branch 2 times, most recently from 23199d4 to 949cbf1 Compare September 16, 2024 08:29
@julianuziemblo julianuziemblo force-pushed the julianuziemblo/enet-imxrt1064-evk branch from 949cbf1 to c11c661 Compare September 16, 2024 08:31
@julianuziemblo julianuziemblo force-pushed the julianuziemblo/enet-imxrt1064-evk branch 4 times, most recently from f73b229 to 860b5b9 Compare April 15, 2025 08:19
@julianuziemblo julianuziemblo force-pushed the julianuziemblo/enet-imxrt1064-evk branch 3 times, most recently from 8a237ea to 3718bce Compare April 16, 2025 10:38
refactor printfs with repeated format pattern into ephy_printf

JIRA: RTOS-507
add ephy_debug_printf toggled by EPHY_DEBUG
inside drivers/ephy.c and add debug prints
for easier debugging

JIRA: RTOS-507
first step to add separate implementation files for imx6ull and imxrt106x gpio

JIRA: RTOS-507
remove active value inversion in gpio_wait because the value is already being inverted in gpio_get

JIRA: RTOS-507
KSZ8081RNB is the actual Ethernet PHY on
iMX 6ULL's evaluation board

JIRA: RTOS-507
fix 7b90e8e:
- add _Atomic specifier to volatile vars used as atomics
- change operations on the vars to atomic_*

JIRA: RTOS-507
refactor packet buffer handling to support target with PAGE_SIZE < pkt_buf_sz

JIRA: RTOS-507
This eliminates the need for extra call to mphys to check
if we got contiguous memory - we can just call va2pa.

JIRA: RTOS-507
@julianuziemblo julianuziemblo force-pushed the julianuziemblo/enet-imxrt1064-evk branch from 3718bce to 37110e8 Compare April 28, 2025 10:08
@phoenix-rtos phoenix-rtos deleted a comment from gemini-code-assist bot Apr 29, 2025
@phoenix-rtos phoenix-rtos deleted a comment from gemini-code-assist bot Apr 29, 2025
@phoenix-rtos phoenix-rtos deleted a comment from gemini-code-assist bot Apr 29, 2025
@phoenix-rtos phoenix-rtos deleted a comment from gemini-code-assist bot Apr 29, 2025
@phoenix-rtos phoenix-rtos deleted a comment from gemini-code-assist bot Apr 29, 2025
@phoenix-rtos phoenix-rtos deleted a comment from gemini-code-assist bot Apr 29, 2025
@phoenix-rtos phoenix-rtos deleted a comment from gemini-code-assist bot Apr 29, 2025
@phoenix-rtos phoenix-rtos deleted a comment from gemini-code-assist bot Apr 29, 2025
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.

4 participants