-
Notifications
You must be signed in to change notification settings - Fork 7.1k
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
drivers: ethernet: phy_mii: Return -ENOTSUP for fixed-link config #87238
Conversation
shouldn't it return -ENOTSUP ? The API contract for this specifically says to return -ENOTSUP if not supported with the phy, and sounds like a fixed link does not support configuration |
@decsny Currently, the |
I mean you're saying you're making this ticket because right now the fixed-link phy_mii returns errors due to trying to call mdio functions , so returning -ENOTSUP would be an improvement and not break anything, right? If the nxp_enet driver does not handle the case where the phy API returns -ENOTSUP (which is specifically distinct in the API as a potentially expected code), then that should be changed in the ethernet driver, probably by considering it to be unexpected and logging a warning (LOG_WRN) but should not cause the ethernet mac device init to error |
@decsny, Okay, I'll split this into two separate PRs as you suggested. |
f4f83d9
to
2f44521
Compare
Done. |
2f44521
to
54299af
Compare
54299af
to
044351e
Compare
Return -ENOTSUP in phy_mii_cfg_link when a fixed-link configuration is set, indicating that MDIO read/write operations are not supported. Signed-off-by: Ofir Shemesh <ofirshemesh777@gmail.com>
044351e
to
42c9486
Compare
Return -ENOTSUP in phy_mii_cfg_link when a fixed-link configuration is set,
indicating that MDIO read/write operations are not supported.