You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "Sarthak-Pandey (via GitHub)" <gi...@apache.org> on 2026/10/15 20:34:03 UTC
[PR] arch/arm/imxrt: fix PHY address scan and YT8512 macro typo [nuttx]
Sarthak-Pandey opened a new pull request, #20697:
URL: https://github.com/apache/nuttx/pull/20697
## Summary
Resolves two issues in `arch/arm/src/imxrt/imxrt_enet.c` reported in #20692:
1. **PHY Address Scanning:** In `imxrt_determine_phy()`, the scan loop iterated over the address range defined in `BOARD_ETH0_PHY_LIST`, but upon finding the matching PHY, it never stored the detected `phyaddr` into `priv->current_phy_address`. Consequently, `priv->current_phy_address` remained stuck at the initial `address_lo`, causing PHY communication to fail on any board where the PHY address is greater than `address_lo`.
2. **YT8512 Configuration Symbol Typo:** In `imxrt_phyintenable()`, `#if defined(CONFIG_ETH0_YT8512)` was used instead of `#if defined(CONFIG_ETH0_PHY_YT8512)` (the actual Kconfig symbol defined in `drivers/net/Kconfig`). Because of this typo, builds with `CONFIG_ETH0_PHY_YT8512` failed the check and fell back to configuring KSZ8081 interrupt registers instead of the YT8512 interrupt mask/status registers.
Fixes #20692
## Impact
* **Is new feature added?** No
* **Is existing feature changed?** Yes (bug fixes in i.MX RT Ethernet driver)
* **Users affected:** Users of i.MX RT boards with PHY address ranges in `BOARD_ETH0_PHY_LIST` or boards using Motorcomm YT8512 PHY with PHY interrupts enabled.
* **Build impact:** None.
* **Hardware impact:** Fixes PHY detection on custom i.MX RT boards and enables correct PHY link interrupts on YT8512.
* **Compatibility:** Backward-compatible; fixed-address boards like EC300 continue to work without change.
## Testing
* Verified changes with `nxstyle` across modified lines: 0 errors, 0 warnings.
* Verified commit message and signed-off tag adherence to Apache NuttX guidelines.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] arch/arm/imxrt: fix PHY address scan and YT8512 macro typo [nuttx]
Posted by "Sarthak-Pandey (via GitHub)" <gi...@apache.org>.
Sarthak-Pandey commented on PR #20697:
URL: https://github.com/apache/nuttx/pull/20697#issuecomment-6208218264
Hi @xiaoxiang781216 ,
The CI failure in Linux (arm-14) is due to a flash overflow during the build of stm32l0538-disco/nsh:
text
arm-none-eabi-ld: section '.data' will not fit in region 'flash'
arm-none-eabi-ld: region 'flash' overflowed by 136 bytes
This appears to be an upstream master issue that is also affecting other recent PRs (e.g. #20695, #20696) and is unrelated to the i.MX RT changes in this PR.
I will rebase this branch once the upstream issue is resolved on master. Please let me know if you would like me to submit a separate PR to trim stm32l0538-disco/nsh's flash usage.
Thanks!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] arch/arm/imxrt: fix PHY address scan and YT8512 macro typo [nuttx]
Posted by "michallenc (via GitHub)" <gi...@apache.org>.
michallenc merged PR #20697:
URL: https://github.com/apache/nuttx/pull/20697
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] arch/arm/imxrt: fix PHY address scan and YT8512 macro typo [nuttx]
Posted by "xiaoxiang781216 (via GitHub)" <gi...@apache.org>.
xiaoxiang781216 commented on PR #20697:
URL: https://github.com/apache/nuttx/pull/20697#issuecomment-6213438115
> Hi @xiaoxiang781216 ,
>
> The CI failure in Linux (arm-14) is due to a flash overflow during the build of stm32l0538-disco/nsh:
>
> text arm-none-eabi-ld: section '.data' will not fit in region 'flash' arm-none-eabi-ld: region 'flash' overflowed by 136 bytes This appears to be an upstream master issue that is also affecting other recent PRs (e.g. #20695, #20696) and is unrelated to the i.MX RT changes in this PR.
>
> I will rebase this branch once the upstream issue is resolved on master. Please let me know if you would like me to submit a separate PR to trim stm32l0538-disco/nsh's flash usage.
>
> Thanks!
fix here: https://github.com/apache/nuttx/pull/20700
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] arch/arm/imxrt: fix PHY address scan and YT8512 macro typo [nuttx]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #20697:
URL: https://github.com/apache/nuttx/pull/20697#issuecomment-6203159730
<!-- membrowse-pr-comment -->
## <img src="https://membrowse.com/membrowse-logo.svg" height="24" align="top"> MemBrowse Memory Report
*No memory changes detected for:*
- [arduino-mega2560](https://membrowse.com/public/apache/nuttx/target/arduino-mega2560/compare?head=c383e4d0ba1b18e2419b1bb953b71ff49255b599&base=c3e180f3aeaa01bf10b9264d92eac5043c071f4c)
- [esp32-devkitc](https://membrowse.com/public/apache/nuttx/target/esp32-devkitc/compare?head=c383e4d0ba1b18e2419b1bb953b71ff49255b599&base=c3e180f3aeaa01bf10b9264d92eac5043c071f4c)
- [hifive1-revb](https://membrowse.com/public/apache/nuttx/target/hifive1-revb/compare?head=c383e4d0ba1b18e2419b1bb953b71ff49255b599&base=c3e180f3aeaa01bf10b9264d92eac5043c071f4c)
- [mirtoo](https://membrowse.com/public/apache/nuttx/target/mirtoo/compare?head=c383e4d0ba1b18e2419b1bb953b71ff49255b599&base=c3e180f3aeaa01bf10b9264d92eac5043c071f4c)
- [qemu-armv8a](https://membrowse.com/public/apache/nuttx/target/qemu-armv8a/compare?head=c383e4d0ba1b18e2419b1bb953b71ff49255b599&base=c3e180f3aeaa01bf10b9264d92eac5043c071f4c)
- [qemu-intel64](https://membrowse.com/public/apache/nuttx/target/qemu-intel64/compare?head=c383e4d0ba1b18e2419b1bb953b71ff49255b599&base=c3e180f3aeaa01bf10b9264d92eac5043c071f4c)
- [rx65n-rsk2mb](https://membrowse.com/public/apache/nuttx/target/rx65n-rsk2mb/compare?head=c383e4d0ba1b18e2419b1bb953b71ff49255b599&base=c3e180f3aeaa01bf10b9264d92eac5043c071f4c)
- [s698pm-dkit](https://membrowse.com/public/apache/nuttx/target/s698pm-dkit/compare?head=c383e4d0ba1b18e2419b1bb953b71ff49255b599&base=c3e180f3aeaa01bf10b9264d92eac5043c071f4c)
- [stm32-nucleo-f103rb](https://membrowse.com/public/apache/nuttx/target/stm32-nucleo-f103rb/compare?head=c383e4d0ba1b18e2419b1bb953b71ff49255b599&base=c3e180f3aeaa01bf10b9264d92eac5043c071f4c)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org