Skip to content
Snippets Groups Projects
Commit c02a9a25 authored by Pawel Dembicki's avatar Pawel Dembicki Committed by Petr Štetiar
Browse files

ramips: mt7620: fix external PHY autopolling


The port initialisation is based on assumption that phy address and
port number is the same. SoC allow different numbers and some board
have it.

Use phy address instead the port number to make sure that correct
addresses are polled.

In situation when only one PHY with address 0x0 is conected to
port 4, autopolling is broken.

This patch make autopolling correct when port number and phy address
are different.

Signed-off-by: default avatarPawel Dembicki <paweldembicki@gmail.com>
parent f96c7f69
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment