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 indexing for phy configuration register #32

Merged
merged 1 commit into from
Apr 28, 2022

Conversation

Wassasin
Copy link
Contributor

The order of the various register fields for the PHY configuration register seem to be inverted. Noticed this issue on a board with a STM32G071. (Link up without a cable connected)

This MR fixes the problem for my case.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
@kellerkindt
Copy link
Owner

I didn't work on this crate for while now and don't know on the top of my head whether this could be an actual issue with this crate or an erroneous setup on your side...
@ryan-summers and @jonahbron would you mind commenting on this?

Copy link
Collaborator

@ryan-summers ryan-summers left a comment

Choose a reason for hiding this comment

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

The previous values indeed appear to be inverted:
image

These changes look good. We don't use register::common::PhyConfig anywhere internally, so this is purely for external reference I believe.

@kellerkindt
Copy link
Owner

Thanks @Wassasin.
Thanks @ryan-summers for the verification.

@kellerkindt kellerkindt merged commit 259550e into kellerkindt:master Apr 28, 2022
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.

None yet

3 participants