You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "ppisa (via GitHub)" <gi...@apache.org> on 2026/04/08 23:55:01 UTC

[PR] arch/arm/stm32h7: fix stm32_mdio private structure use [nuttx]

ppisa opened a new pull request, #18691:
URL: https://github.com/apache/nuttx/pull/18691

   ## Summary
   
   The `struct stm32_mdio_bus_s aka g_stm32_mdio_bus` has not been referenced at all, because  `mdio_register()` allocates its own structure. Then lower half drivers receive only their respective part in `mdio_read()` and `mdio_write()` because `MDIO_WRITE`/`MDIO_READ` provides `only d->lower` to the specific lower level drivers.
   
   ## Impact
   
   Fixes unpredictable timeouts for MDIO read and write on STM32H7 targets. The timeout depended on placement of structures in memory because some other location has been interpreted as expected data-type.
   
   ## Testing
   
   Tested on the custom STM32H7 board with NuttX directly flashed and NuttX compiled and then exported and used in another (OMK) application build system.


-- 
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/stm32h7: fix stm32_mdio private structure use [nuttx]

Posted by "michallenc (via GitHub)" <gi...@apache.org>.
michallenc merged PR #18691:
URL: https://github.com/apache/nuttx/pull/18691


-- 
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