ramips: ignore already handled ethernet phys
authorMathias Kresin <dev@kresin.me>
Wed, 4 Apr 2018 16:26:24 +0000 (18:26 +0200)
committerPetr Štetiar <ynezz@true.cz>
Thu, 20 Jun 2019 06:48:19 +0000 (08:48 +0200)
commitfb423f6e01ce95523959aa3e428aa2ae7cee27f5
tree526f01fa856d4b124d34d82b29283644016b78f7
parentab7f8146fdebe8e67a9154993154fdfe20ef51df
ramips: ignore already handled ethernet phys

The whole logic in fe_phy_connect() is based on the asumption that mdio
address and switch port id are equal. Albeit it is true for most
boards, it doesn't is for all.

It isn't yet clear which subtargets/boards require the devicetree less
ethernet phy handling. Hence change the code in a way that it doesn't
touch ethernet phys which were early attached and are already handled.

Signed-off-by: Mathias Kresin <dev@kresin.me>
target/linux/ramips/files-4.14/drivers/net/ethernet/mediatek/mdio.c