arch/imx9: Correct CONFIG_IMX9_ENET_PHYINIT flag and imx9_phy_boardinitialize #18273
+24
−22
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR has two commits:
I needed this function on a custom board, which needs to separately enable the ethernet phy via an i2c command to another device. While doing this, I found out that the
This PR fixes those issues.
Impact
In theory, affects only imx9 based boards with CONFIG_IMX9_ENET_PHYINIT. Which shouldn't exist, since the flag was not usable due to misspelling it in Kconfig. So essentially, no boards are affected.
Testing
Tested on a custom hardware, which requires explicitly powering on the ethernet phy. After implementing the needed "imx9_phy_boardinitialize" in the board files, and enabling the CONFIG_IMX9_ENET_PHYINIT, I can see that the