ramips: fix gigabit switch PHY access on MDIO
authorDaniel Gimpelevich <daniel@gimpelevich.san-francisco.ca.us>
Wed, 1 Aug 2018 14:51:47 +0000 (07:51 -0700)
committerJohn Crispin <john@phrozen.org>
Mon, 6 Aug 2018 05:05:37 +0000 (07:05 +0200)
commit379fe506729a20c5fdb072840cb662b032e90c36
tree0326cf79f78d756b1869cb05c382724aec62bae7
parent5a6229a93df8a3f292094012a43410c6a24c210e
ramips: fix gigabit switch PHY access on MDIO

When PHY's are defined on the MDIO bus in the DTS, gigabit support was
being masked out for no apparent reason, pegging all such ports to 10/100.
If gigabit support must be disabled for some reason, there should be a
"max-speed" property in the DTS.

Reported-by: James McKenzie <openwrt@madingley.org>
Signed-off-by: Daniel Gimpelevich <daniel@gimpelevich.san-francisco.ca.us>
target/linux/ramips/files-4.14/drivers/net/ethernet/mediatek/mdio.c