Skip to content

Conversation

@maass-hamburg
Copy link
Member

  • reduces unneeded mdio reads for registers with latched bits
  • reduces duration from init to link up callback (some phys set the link status up only when auto neg is finished, before this change we waited for 100 ms)
  • some other changes, see commit messages

provide the BMSR bits positions, so we can use
the `IS_BIT_SET` macro with them.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
let the compiler remove checks for cfg->fixed if we don't have any
fixed link.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
The latched bits are defined in the ethernet specification,
as the only latched bit, that we use, is the link status, improve
the code for it.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
auto negotiation might already be finished when we
check the link status, therefore check directly
instead of waiting 100 ms.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
also set autoneg_in_progress for already on init.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
@sonarqubecloud
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants