Skip to content

drivers: phy_ksz8081: Fix latency from autonegotiation #93118

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

decsny
Copy link
Member

@decsny decsny commented Jul 14, 2025

The sleep call does not seem necessary and might have been left in by mistake, removing it also removes a ton of latency from the system especially noticeable during boot.

The sleep call does not seem necessary and might have been left in by
mistake, removing it also removes a ton of latency from the system
especially noticeable during boot.

Signed-off-by: Declan Snyder <[email protected]>
@github-actions github-actions bot added area: Ethernet size: XS A PR changing only a single line of code labels Jul 14, 2025
@decsny decsny requested a review from DerekSnell July 14, 2025 16:32
Copy link

Copy link
Collaborator

@clamattia clamattia left a comment

Choose a reason for hiding this comment

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

Boot should not have to wait on auto-negotiation see for example:

static void monitor_work_handler(struct k_work *work)

@@ -127,7 +127,6 @@ static int phy_mc_ksz8081_autonegotiate(const struct device *dev)
*/
Copy link
Collaborator

Choose a reason for hiding this comment

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

uint16_t timeout = CONFIG_PHY_AUTONEG_TIMEOUT_MS / 100; from line 101 is no longer right with that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Ethernet size: XS A PR changing only a single line of code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants